Skip to content

Commit

Permalink
Fix for weight file path when appending during merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bekozi committed Oct 8, 2020
1 parent ffc62a2 commit 50e86df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocgis/spatial/grid_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def create_merged_weight_file(self, merged_weight_filename, strict=False):

out_wds = nc.Dataset(merged_weight_filename, 'a')
ocgis_lh(msg="opened output merged weight file in append mode. starting insert loop: {}".format(merged_weight_filename), level=logging.DEBUG, logger=_LOCAL_LOGGER)
for ii, wfn in enumerate(map(lambda x: os.path.join(split_weight_file_directory, x), wv)):
for ii, wfn in enumerate(map(lambda x: os.path.join(split_weight_file_directory, os.path.split(x)[1]), wv)):
if not os.path.exists(wfn):
if strict:
raise IOError(wfn)
Expand Down

0 comments on commit 50e86df

Please sign in to comment.