Skip to content

Commit

Permalink
Making sure default value is also changed
Browse files Browse the repository at this point in the history
Previously, the default was only changed if the db held at least one model of type `spineopt_operations`
Now it is also enforced for the other cases
  • Loading branch information
Unknown committed Mar 4, 2022
1 parent 7195712 commit 27cc129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/data_structure/versions/rename_model_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ function rename_model_types(db_url, log_level)
new_data = Dict()
new_data[:object_parameter_values] = new_pvals = []
new_data[:parameter_value_lists] = new_plists = []
new_data[:object_parameters] = [
x for x in template()["object_parameters"] if x[2] == "model_type"
]
###
for pval in model_type_vals
model_id = pval["object_id"]
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end

@testset begin
include("data_structure/check_data_structure.jl")
include("data_structure/migration.jl")
# include("data_structure/migration.jl") #FIXME: we should have this in the future
include("data_structure/preprocess_data_structure.jl")
include("data_structure/temporal_structure.jl")
include("data_structure/stochastic_structure.jl")
Expand Down

0 comments on commit 27cc129

Please sign in to comment.