Skip to content

Commit 28f76f2

Browse files
committed
Fix test that must have been broken a while ago (made use of the mapping from another test). Could be avoided by sandboxing testsuites completely.
1 parent d2ac65f commit 28f76f2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/test-mtg-multiscale-cyclic-dep.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ out_vars = Dict(
4949

5050
soft_dep_graphs_roots, hard_dep_dict = PlantSimEngine.hard_dependencies(mapping_cyclic)
5151

52-
mapped_vars_cyclic = mapped_variables(mapping_cyclic, soft_dep_graphs_roots, verbose=false)
53-
rev_mapping_cyclic = reverse_mapping(mapped_vars_cyclic, all=false)
52+
mapped_vars_cyclic = PlantSimEngine.mapped_variables(mapping_cyclic, soft_dep_graphs_roots, verbose=false)
53+
rev_mapping_cyclic = PlantSimEngine.reverse_mapping(mapped_vars_cyclic, all=false)
5454
dep_graph = PlantSimEngine.soft_dependencies_multiscale(soft_dep_graphs_roots, rev_mapping_cyclic, hard_dep_dict)
5555
iscyclic, cycle_vec = PlantSimEngine.is_graph_cyclic(dep_graph; warn=false)
5656

@@ -101,8 +101,8 @@ end
101101
soft_dep_graphs_roots, hard_dep_dict = PlantSimEngine.hard_dependencies(mapping_nocyclic)
102102
# soft_dep_graphs_roots.roots["Leaf"].inputs
103103

104-
mapped_vars_nocyclic = mapped_variables(mapping_nocyclic, soft_dep_graphs_roots, verbose=false)
105-
rev_mapping_nocyclic = reverse_mapping(mapped_vars_nocyclic, all=false)
104+
mapped_vars_nocyclic = PlantSimEngine.mapped_variables(mapping_nocyclic, soft_dep_graphs_roots, verbose=false)
105+
rev_mapping_nocyclic = PlantSimEngine.reverse_mapping(mapped_vars_nocyclic, all=false)
106106
dep_graph = PlantSimEngine.soft_dependencies_multiscale(soft_dep_graphs_roots, rev_mapping_nocyclic, hard_dep_dict)
107107
iscyclic, cycle_vec = PlantSimEngine.is_graph_cyclic(dep_graph; warn=false)
108108

@@ -113,7 +113,7 @@ end
113113

114114
#out = @test_nowarn run!(mtg, mapping_nocyclic, meteo, tracked_outputs=out_vars, executor=SequentialEx())
115115
nsteps = PlantSimEngine.get_nsteps(meteo)
116-
sim = PlantSimEngine.GraphSimulation(mtg, mapping, nsteps=nsteps, check=true, outputs=out_vars)
116+
sim = PlantSimEngine.GraphSimulation(mtg, mapping_nocyclic, nsteps=nsteps, check=true, outputs=out_vars)
117117
out = @test_nowarn run!(sim,meteo)
118118
st = status(sim)
119119

0 commit comments

Comments
 (0)