diff --git a/rubin_scheduler/scheduler/basis_functions/basis_functions.py b/rubin_scheduler/scheduler/basis_functions/basis_functions.py index baad7e40..66105cf5 100644 --- a/rubin_scheduler/scheduler/basis_functions/basis_functions.py +++ b/rubin_scheduler/scheduler/basis_functions/basis_functions.py @@ -1857,6 +1857,7 @@ class TemplateGenerateBasisFunction(BaseBasisFunction): The indices of the healpixels to apply the boost to. Uses the default footprint if None """ + def __init__(self, nside=None, day_gap=250.0, filtername="r", footprint=None): super(TemplateGenerateBasisFunction, self).__init__(nside=nside) self.day_gap = day_gap diff --git a/rubin_scheduler/scheduler/example/example_scheduler.py b/rubin_scheduler/scheduler/example/example_scheduler.py index f004cb79..55999cec 100644 --- a/rubin_scheduler/scheduler/example/example_scheduler.py +++ b/rubin_scheduler/scheduler/example/example_scheduler.py @@ -1531,8 +1531,7 @@ def run_sched( illum_limit=40.0, mjd_start=60796.0, ): - """Run the scheduler to get a simulated pointing history. - """ + """Run the scheduler to get a simulated pointing history.""" years = np.round(survey_length / 365.25) scheduler = CoreScheduler(surveys, nside=nside) n_visit_limit = None diff --git a/rubin_scheduler/scheduler/model_observatory/kinem_model.py b/rubin_scheduler/scheduler/model_observatory/kinem_model.py index 0624e2d9..f53fdb9f 100644 --- a/rubin_scheduler/scheduler/model_observatory/kinem_model.py +++ b/rubin_scheduler/scheduler/model_observatory/kinem_model.py @@ -10,8 +10,7 @@ class Radec2altazpa: - """Class to make it easy to swap in different alt/az conversion if wanted. - """ + """Class to make it easy to swap in different alt/az conversion if wanted.""" def __init__(self, location): self.location = location @@ -618,8 +617,7 @@ def visit_time(self, observation): return visit_time def shutter_stall(self, observation): - """Time we need to stall after shutter closes to let things cool down. - """ + """Time we need to stall after shutter closes to let things cool down.""" result = 0.0 delta_t = observation["exptime"] / observation["nexp"] if delta_t < self.shutter_2motion_min_time: