Skip to content

Commit

Permalink
run updated black/isort
Browse files Browse the repository at this point in the history
  • Loading branch information
pgriffin17 committed Feb 4, 2024
1 parent 4cf0870 commit ae1f851
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 141 deletions.
12 changes: 6 additions & 6 deletions pyscope/observatory/observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ def __init__(self, config_path=None, **kwargs):
self._config["cover_calibrator"][
"cover_calibrator_driver"
] = self._cover_calibrator_driver
self._config["cover_calibrator"][
"cover_calibrator_kwargs"
] = _kwargs_to_config(self._cover_calibrator_kwargs)
self._config["cover_calibrator"]["cover_calibrator_kwargs"] = (
_kwargs_to_config(self._cover_calibrator_kwargs)
)

# Dome
self._dome = kwargs.get("dome", self._dome)
Expand Down Expand Up @@ -563,9 +563,9 @@ def __init__(self, config_path=None, **kwargs):
self._config["observing_conditions"][
"observing_conditions_driver"
] = self._observing_conditions_driver
self._config["observing_conditions"][
"observing_conditions_kwargs"
] = _kwargs_to_config(self._observing_conditions_kwargs)
self._config["observing_conditions"]["observing_conditions_kwargs"] = (
_kwargs_to_config(self._observing_conditions_kwargs)
)

# Rotator
self._rotator = kwargs.get("rotator", self._rotator)
Expand Down
27 changes: 17 additions & 10 deletions pyscope/telrun/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,13 @@ def summary_report_cli(
[hdr["MOONANGL"] for hdr in headers],
[hdr["MOONPHAS"] for hdr in headers],
[
coord.SkyCoord(
hdr["OBJCTRA"], hdr["OBJCTDEC"], unit=("hourangle", "deg")
(
coord.SkyCoord(
hdr["OBJCTRA"], hdr["OBJCTDEC"], unit=("hourangle", "deg")
)
if None not in (hdr.get("OBJCTRA", None), hdr.get("OBJCTDEC", None))
else None
)
if None not in (hdr.get("OBJCTRA", None), hdr.get("OBJCTDEC", None))
else None
for hdr in headers
],
],
Expand Down Expand Up @@ -267,17 +269,22 @@ def summary_report_cli(
# Pointing errors in arcsec
dra = np.array(
[
(tbl["sched coords"][i].ra.deg - tbl["obj coords"][i].ra.deg) / u.arcsec
if tbl["obj coords"][i] is not None
else np.nan
(
(tbl["sched coords"][i].ra.deg - tbl["obj coords"][i].ra.deg) / u.arcsec
if tbl["obj coords"][i] is not None
else np.nan
)
for i in range(len(tbl))
]
)
ddec = np.array(
[
(tbl["sched coords"][i].dec.deg - tbl["obj coords"][i].dec.deg) / u.arcsec
if tbl["obj coords"][i] is not None
else np.nan
(
(tbl["sched coords"][i].dec.deg - tbl["obj coords"][i].dec.deg)
/ u.arcsec
if tbl["obj coords"][i] is not None
else np.nan
)
for i in range(len(tbl))
]
)
Expand Down
Loading

0 comments on commit ae1f851

Please sign in to comment.