Skip to content

Commit

Permalink
Update TA3 to use new configured model endpoints #3759
Browse files Browse the repository at this point in the history
Pointing to the new HMI-server endpoints for the configured model
  • Loading branch information
dvince2 committed Jun 11, 2024
1 parent 13e7eb0 commit bd78635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/utils/tds.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TDS_PASSWORD = settings.TDS_PASSWORD
TDS_SIMULATIONS = "/simulations"
TDS_DATASETS = "/datasets"
TDS_CONFIGURATIONS = "/model-configurations-legacy"
TDS_CONFIGURATIONS = "/model-configurations/as-configured-model"


#
Expand Down Expand Up @@ -136,7 +136,7 @@ def fetch_model(model_config_id, job_id):
with open(amr_path, "w") as file:
# Ensure we don't have null observables which can be problematic downstream, if so convert
# to empty list
model_json = model_response.json()["configuration"]
model_json = model_response.json()
if "semantics" in model_json and "ode" in model_json["semantics"]:
ode = model_json["semantics"]["ode"]
if "observables" in ode and ode["observables"] is None:
Expand Down

0 comments on commit bd78635

Please sign in to comment.