Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1388 from SparkSnail/dev-fix-experiment-list
Browse files Browse the repository at this point in the history
Fix experiment list status issue
  • Loading branch information
suiguoxin authored Jul 30, 2019
2 parents 664a149 + 9a43f0d commit 1c29b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/nni_cmd/nnictl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ def platform_clean(args):
if platform not in ['remote', 'pai']:
print_normal('platform {0} not supported.'.format(platform))
exit(0)
update_experiment()
experiment_config = Experiments()
experiment_dict = experiment_config.get_all_experiments()
update_experiment()
id_list = list(experiment_dict.keys())
dir_list = get_platform_dir(config_content)
if not dir_list:
Expand Down Expand Up @@ -553,12 +553,12 @@ def platform_clean(args):

def experiment_list(args):
'''get the information of all experiments'''
update_experiment()
experiment_config = Experiments()
experiment_dict = experiment_config.get_all_experiments()
if not experiment_dict:
print_normal('Cannot find experiments.')
exit(1)
update_experiment()
experiment_id_list = []
if args.all:
for key in experiment_dict.keys():
Expand Down Expand Up @@ -595,12 +595,12 @@ def get_time_interval(time1, time2):

def show_experiment_info():
'''show experiment information in monitor'''
update_experiment()
experiment_config = Experiments()
experiment_dict = experiment_config.get_all_experiments()
if not experiment_dict:
print('There is no experiment running...')
exit(1)
update_experiment()
experiment_id_list = []
for key in experiment_dict.keys():
if experiment_dict[key]['status'] != 'STOPPED':
Expand Down

0 comments on commit 1c29b08

Please sign in to comment.