Skip to content

Commit

Permalink
Export sub map if export poly true
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBodine committed Feb 12, 2024
1 parent 2a2b2da commit eab7b0c
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/main_mapSubstrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,25 @@ def map_master_func(logfilename='',
maps = glob(os.path.join(mapPath, '*.tif'))

if len(maps) == 0:
if export_poly:
error_noSubMap_poly()
if map_mosaic:
error_noSubMap_mosaic()
# if export_poly:
# error_noSubMap_poly()
# if map_mosaic:
# error_noSubMap_mosaic()
map_sub = True

#########################################################
# If map_sub == 0, make sure data was previously exported
if not map_sub and export_poly:
# Get directory
mapPath = os.path.join(mapObjs[0].substrateDir, 'map_substrate_raster')
maps = glob(os.path.join(mapPath, '*.tif'))

if len(maps) == 0:
# if export_poly:
# error_noSubMap_poly()
# if map_mosaic:
# error_noSubMap_mosaic()
map_sub = True

#############################################
# Determine if smoothed trackline was created
Expand Down

0 comments on commit eab7b0c

Please sign in to comment.