e6629a767b52e1bd4ae63b2ed9fe79ab94f302bf,nni/tools/nnictl/updater.py,,import_data_to_restful_server,#Any#Any#,138
Before Change
def import_data_to_restful_server(args, content):
"""call restful server to import data to the experiment"""
nni_config = Config(get_config_filename(args))
rest_port = nni_config.get_config("restServerPort")
running, _ = check_rest_server_quick(rest_port)
if running:
response = rest_post(import_data_url(rest_port), content, REST_TIME_OUT)
if response and check_response(response):
After Change
def import_data_to_restful_server(args, content):
"""call restful server to import data to the experiment"""
experiments_dict = Experiments().get_all_experiments()
rest_port = experiments_dict.get(get_config_filename(args)).get("port")
running, _ = check_rest_server_quick(rest_port)
if running:
response = rest_post(import_data_url(rest_port), content, REST_TIME_OUT)
if response and check_response(response):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: Microsoft/nni
Commit Name: e6629a767b52e1bd4ae63b2ed9fe79ab94f302bf
Time: 2021-01-24
Author: 33053116+J-shang@users.noreply.github.com
File Name: nni/tools/nnictl/updater.py
Class Name:
Method Name: import_data_to_restful_server
Project Name: Microsoft/nni
Commit Name: f68ba4a632ca97b070f2ae40398b59b47e641f77
Time: 2021-01-04
Author: 33053116+J-shang@users.noreply.github.com
File Name: nni/tools/nnictl/updater.py
Class Name:
Method Name: update_experiment_profile
Project Name: Microsoft/nni
Commit Name: e6629a767b52e1bd4ae63b2ed9fe79ab94f302bf
Time: 2021-01-24
Author: 33053116+J-shang@users.noreply.github.com
File Name: nni/tools/nnictl/updater.py
Class Name:
Method Name: import_data