Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Oct 10, 2023
1 parent e8d960a commit 23dd72a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/kbmod/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def from_table(cls, t, strict=True):
params = {col.name: safe_load(col.value[0]) for col in t.values()}
return SearchConfiguration.from_dict(params)


@classmethod
def from_yaml(cls, config, strict=True):
"""Load a configuration from a YAML file.
Expand Down Expand Up @@ -234,9 +233,12 @@ def to_hdu(self):
hdu : `astropy.io.fits.BinTableHDU`
The HDU with the configuration information.
"""
serialized_dict = {key: dump(val, default_flow_style=True)
for key, val in self._params.items()}
t = Table(rows=[serialized_dict, ])
serialized_dict = {key: dump(val, default_flow_style=True) for key, val in self._params.items()}
t = Table(
rows=[
serialized_dict,
]
)
return fits.table_to_hdu(t)

def to_yaml(self):
Expand Down

0 comments on commit 23dd72a

Please sign in to comment.