Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emanehab99 committed Oct 11, 2023
1 parent 53113c5 commit 8851a76
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions schedview/app/scheduler_dashboard/scheduler_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8851a76

Please sign in to comment.