Skip to content

Commit

Permalink
fix reloading experiments in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ankeko committed Nov 8, 2023
1 parent 1fa1fe2 commit 24610da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions niceml/dashboard/remotettrainutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ def _check_and_load_cache(
) -> List[ExperimentData]:
experiments_list = []
for cur_exp_info in exp_info_list:
if local_exp_cache is not None and local_exp_cache.should_reload(
if local_exp_cache is not None and not local_exp_cache.should_reload(
cur_exp_info
):
# TODO check if experiment is modified
initialized_df_loader: DfLoader = df_loader_factory.create_df_loader(
storage, cur_exp_info.exp_filepath
)
Expand Down Expand Up @@ -118,10 +117,7 @@ def _check_and_load_cache(
)
if experiment is not None:
experiments.append(experiment)
if (
local_exp_cache is not None
and experiment.get_short_id() not in local_exp_cache
):
if local_exp_cache is not None:
local_exp_cache.save_experiment(experiment)
prog_bar.progress(idx / load_exp_count)
status_text.text(f"Cached {idx}/{load_exp_count} experiments")
Expand Down

0 comments on commit 24610da

Please sign in to comment.