Skip to content

Commit

Permalink
Fix request reading
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant committed Jul 12, 2023
1 parent 6ff29a6 commit e520600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimulationService.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,16 @@ mutable struct OperationRequest{T <: Operation}
for (k,v) in obj
if k == :model_config_id
model = SIMSERVICE_ENABLE_TDS ?
get_json("$SIMSERVICE_TDS_URL/model_configurations/$v", Config) :
get_json("$SIMSERVICE_TDS_URL/model_configurations/$v") :
Config()
elseif k == :model_config_ids
model = map(v) do id
SIMSERVICE_ENABLE_TDS ?
get_json("$SIMSERVICE_TDS_URL/model_configurations/$id", Config) :
get_json("$SIMSERVICE_TDS_URL/model_configurations/$id") :
Config()
end
elseif k == :timespan
timespan = Tuple{Float64,Float64}(v)
timespan = (Float64(v["start"]), Float64(v["end"]))
elseif k == :dataset # calibrate only. keys(v) = (:id, :filename, :mappings)
if SIMSERVICE_ENABLE_TDS
tds_url = "$SIMSERVICE_TDS_URL/datasets/$(v.id)/download-url?filename=$(v.filename)"
Expand Down

0 comments on commit e520600

Please sign in to comment.