Skip to content

Commit

Permalink
fix: use toml.dumps instead of toml.dump
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Mar 29, 2024
1 parent 00faf6f commit c5f03a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hera_opm/mf_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ def make_lstbin_config_file(config, outdir: str) -> int:

from hera_cal.lst_stack.config import LSTBinConfiguration

Check warning on line 1441 in hera_opm/mf_tools.py

View check run for this annotation

Codecov / codecov/patch

hera_opm/mf_tools.py#L1441

Added line #L1441 was not covered by tests

lstconfig = LSTBinConfiguration.from_toml(toml.dump(lstconfig))
lstconfig = LSTBinConfiguration.from_toml(toml.dumps(lstconfig))
print(f"Found {len(lstconfig.data_files)} nights of data.")
print("Each night has the following number of files:")
for flist in lstconfig.data_files:
Expand Down

0 comments on commit c5f03a8

Please sign in to comment.