From 8851a76bffae2a609e67532881fd8733ef3c7826 Mon Sep 17 00:00:00 2001 From: Eman Ali Date: Mon, 9 Oct 2023 21:03:14 +1100 Subject: [PATCH] remove comments --- .../scheduler_dashboard.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/schedview/app/scheduler_dashboard/scheduler_dashboard.py b/schedview/app/scheduler_dashboard/scheduler_dashboard.py index 62ace401..fd3cd2c5 100644 --- a/schedview/app/scheduler_dashboard/scheduler_dashboard.py +++ b/schedview/app/scheduler_dashboard/scheduler_dashboard.py @@ -138,7 +138,6 @@ class Scheduler(param.Parameterized): summary_widget = param.Parameter(default=None, doc="") reward_widget = param.Parameter(default=None, doc="") show_loading_indicator = param.Boolean(default=False) - # date_time = param.Number(default=None) # Param parameters (used in depends decoraters and trigger calls). _publish_summary_widget = param.Parameter(None) @@ -164,7 +163,6 @@ class Scheduler(param.Parameterized): _scheduler = None _conditions = None _date_time = None - # _date_time = param.Number(default=None) _reward_df = None _scheduler_summary_df = None _survey_maps = None @@ -175,7 +173,6 @@ class Scheduler(param.Parameterized): _display_dashboard_data = False _do_not_trigger_update = True _model_observatory = ModelObservatory(init_load_length=1) - # _isDateUpdating = False # ------------------------------------------------------------ User actions @@ -220,29 +217,6 @@ def _update_scheduler_fname(self): self.show_loading_indicator = False - # @param.depends("date_time", watch=True) - # def _update_date_from_mjd(self): - # """Update the dashboard when a user chooses a new date/time.""" - - # print("updating date_time from url") - # self._isDateUpdating = True - # self._date_time = self.date_time - # self.date = Time(self.date_time, format="mjd").to_datetime() - # self._isDateUpdating = False - - # @param.depends("date", watch=True) - # def _update_date_from_picker(self): - # """Update the dashboard when a user chooses a new date/time.""" - # if not self._isDateUpdating: - # print("updating date_time from date selector") - # self._isDateUpdating = True - # self.date_time = Time( - # Timestamp( - # self.date, - # tzinfo=ZoneInfo(DEFAULT_TIMEZONE), - # ) - # ).mjd - @param.depends("date", watch=True) def _update_date(self): """Update the dashboard when a user chooses a new date/time.""" @@ -1494,11 +1468,7 @@ def update_loading(loading): return sched_app -<<<<<<< HEAD def main(): -======= -if __name__ == "__main__": ->>>>>>> precommit fixes print("Starting scheduler dashboard.") if "SCHEDULER_PORT" in os.environ: