From ebf39731d96603eb5c26ad8e307f440c21222f23 Mon Sep 17 00:00:00 2001 From: Eric Neilsen Date: Fri, 13 Sep 2024 13:52:04 -0700 Subject: [PATCH] fix docstring --- schedview/collect/opsim.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/schedview/collect/opsim.py b/schedview/collect/opsim.py index 7416cb4c..c43f7811 100644 --- a/schedview/collect/opsim.py +++ b/schedview/collect/opsim.py @@ -138,7 +138,9 @@ def read_opsim( try: try: - visits = pd.DataFrame(maf.get_sim_data(sim_connection, constraint, norm_columns, **kwargs)) + visits = pd.DataFrame( + maf.get_sim_data(sim_connection, constraint, norm_columns, **kwargs) + ) except UserWarning: warn("No visits match constraints.") visits = ( @@ -198,8 +200,9 @@ def read_ddf_visits( The start time for visits to be loaded end_time : `str`, `astropy.time.Time` The end time for visits ot be loaded - dbcols : `list` [`str`] - Columns required from the database. + dbcols : `Note` oc `list` [`str`] + Columns required from the database. Defaults to None, + which uses all columns in the database. stackers : `list` [`rubin_sim.maf.stackers`], optional Stackers to be used to generate additional columns.