EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit ce5da9be authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing generated filename in calc step

parent b2bf186c
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
def calc_step(source_dir: os.PathLike, target_dir: os.PathLike, formulas: List[dict]):
for i, item in enumerate(formulas):
# get first filename as a base
filename = glob(join(source_dir, list(item['inputs'].values())[0]['glob']))
filename = glob(join(source_dir, list(item['inputs'].values())[0]['glob']))[0]
target_filename = join(
target_dir,
replace_ext(basename(filename), item.get('output_postfix', '_proc%d' % i) + '.tif', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment