Skip to content

Commit

Permalink
fix: use correct location of antpairs
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Jul 4, 2024
1 parent a7f081b commit 2d36376
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hera_opm/mf_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,21 +1357,21 @@ def make_lstbin_config_file(

matched_files = lstconfig.get_matched_files()

# Split up the baselines into chunks that will be LST-binned together.
# This is just to save on RAM.
if bl_chunk_size is None:
bl_chunk_size = len(lstconfig.antpairs)
else:
bl_chunk_size = min(bl_chunk_size, len(lstconfig.antpairs))

n_bl_chunks = int(math.ceil(len(config.antpairs) / bl_chunk_size))

lst_file_config = lstconfig.create_config(matched_files)

lstbin_config_file = Path(outdir) / "file-config.h5"

lst_file_config.write(lstbin_config_file)

# Split up the baselines into chunks that will be LST-binned together.
# This is just to save on RAM.
if bl_chunk_size is None:
bl_chunk_size = len(lst_file_config.antpairs)
else:
bl_chunk_size = min(bl_chunk_size, len(lst_file_config.antpairs))

Check warning on line 1371 in hera_opm/mf_tools.py

View check run for this annotation

Codecov / codecov/patch

hera_opm/mf_tools.py#L1371

Added line #L1371 was not covered by tests

n_bl_chunks = int(math.ceil(len(lst_file_config.antpairs) / bl_chunk_size))

return lstbin_config_file, len(lst_file_config.matched_files), n_bl_chunks


Expand Down

0 comments on commit 2d36376

Please sign in to comment.