Skip to content

Commit

Permalink
wrong collect tag written to blend collect config
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Jan 6, 2025
1 parent 172fa1a commit 386bcc6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
11 changes: 0 additions & 11 deletions nsrdb/blend/blend.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@ def _parse_blended_meta(self):
self._meta_west = self._meta_west[west_mask]
self._meta_east = self._meta_east[east_mask]

"""
if len(self._meta_east) < 10:
e = 'Eastern meta got totally eliminated by seam mask!'
logger.error(e)
raise RuntimeError(e)
if len(self._meta_west) < 10:
e = 'Western meta got totally eliminated by seam mask!'
logger.error(e)
raise RuntimeError(e)
"""

west_gid_full = self._meta_west[self._map_col].values.tolist()
east_gid_full = self._meta_east[self._map_col].values.tolist()
gid_full_all = list(set(west_gid_full + east_gid_full))
Expand Down
4 changes: 1 addition & 3 deletions nsrdb/config/create_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,7 @@ def _collect_blend(cls, kwargs):
config['run_name'] = cls._get_run_name(
config, run_type='collect-blend'
)
config['collect_tag'] = config['run_name'].replace(
'_collect_blend', ''
)
config['collect_tag'] = f'{config["basename"]}_{config["extent"]}'
return config

@classmethod
Expand Down
6 changes: 6 additions & 0 deletions nsrdb/file_handlers/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,12 @@ def _get_collection_attrs(
Output (collected) dataset shape
"""

logger.info(
'Getting collection attrs from collect_dir=%s, flist=%s',
collect_dir,
flist,
)

if sort:
flist = sorted(flist, key=sort_key)

Expand Down

0 comments on commit 386bcc6

Please sign in to comment.