Skip to content

Commit

Permalink
test to pass the cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelDaab committed Dec 12, 2023
1 parent 1e3ac71 commit f2501ba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions myria3d/pctl/dataset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,12 @@ def get_pdal_reader(las_path: str, epsg: str) -> pdal.Reader.las:
# get_metadata(las_path)['metadata']['readers.las']['srs']['compoundwkt']:
# # read the lidar file with pdal default
# return pdal.Reader.las(filename=las_path)
if 'metadata' in get_metadata(las_path):
if 'readers.las' in get_metadata(las_path)['metadata']:
if 'srs' in get_metadata(las_path)['metadata']['readers.las']:
if 'compoundwkt' in get_metadata(las_path)['metadata']['readers.las']['srs']:
if get_metadata(las_path)['metadata']['readers.las']['srs']['compoundwkt']:
# read the lidar file with pdal default
return pdal.Reader.las(filename=las_path)
try :
if get_metadata(las_path)['metadata']['readers.las']['srs']['compoundwkt']:
# read the lidar file with pdal default
return pdal.Reader.las(filename=las_path)
except:
pass # we will go to the "raise exception" anyway

raise Exception("No EPSG provided, neither in the lidar file or as parameter")

Expand Down

0 comments on commit f2501ba

Please sign in to comment.