Skip to content

Commit

Permalink
Updating settings files in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cinzia Mazzetti committed Nov 22, 2024
1 parent 98c9b00 commit 55b6248
Show file tree
Hide file tree
Showing 47 changed files with 1,051 additions and 1,839 deletions.
343 changes: 169 additions & 174 deletions src/lisfloodSettings_reference.xml

Large diffs are not rendered by default.

600 changes: 215 additions & 385 deletions tests/data/LF_MCT_UseCase/settings/mct_cold.xml

Large diffs are not rendered by default.

652 changes: 212 additions & 440 deletions tests/data/LF_MCT_UseCase/settings/mct_cold_for_results_generation.xml

Large diffs are not rendered by default.

572 changes: 208 additions & 364 deletions tests/data/LF_MCT_UseCase/settings/mct_inflow.xml

Large diffs are not rendered by default.

687 changes: 229 additions & 458 deletions tests/data/LF_MCT_UseCase/settings/mct_warm.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/test_mct_dyn_inflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def run(self, date_start, date_end, dtsec, type):
# output_tss = os.path.join(out_path_run, 'dis.tss')

# test when DtSec != DtSecChannel
reference = os.path.join(out_path_ref, 'chanqX.tss')
output_tss = os.path.join(out_path_run, 'chanqX.tss')
reference = os.path.join(out_path_ref, 'chanqWin.tss')
output_tss = os.path.join(out_path_run, 'chanqWin.tss')

comparator.compare_files(reference, output_tss)

Expand Down
32 changes: 16 additions & 16 deletions tests/test_mct_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def run_mct(self, date_start, date_end, dtsec, dtsec_chan, type):
comparator = TSSComparator(atol,rtol)

# compare results for average discharge output
reference = os.path.join(out_path_ref, 'disX.tss')
output_tss = os.path.join(self.out_path_run, 'disX.tss')
reference = os.path.join(out_path_ref, 'disWin.tss')
output_tss = os.path.join(self.out_path_run, 'disWin.tss')
comparator.compare_files(reference, output_tss)

# compare results for instant discharge output
reference = os.path.join(out_path_ref, 'chanqX.tss')
output_tss = os.path.join(self.out_path_run, 'chanqX.tss')
reference = os.path.join(out_path_ref, 'chanqWin.tss')
output_tss = os.path.join(self.out_path_run, 'chanqWin.tss')
comparator.compare_files(reference, output_tss)

# compare mass balance error
Expand Down Expand Up @@ -82,13 +82,13 @@ def run_mcts(self, date_start, date_end, dtsec, dtsec_chan, type):
comparator = TSSComparator(atol,rtol)

# compare results for average discharge output
reference = os.path.join(out_path_ref, 'disX.tss')
output_tss = os.path.join(self.out_path_run, 'disX.tss')
reference = os.path.join(out_path_ref, 'disWin.tss')
output_tss = os.path.join(self.out_path_run, 'disWin.tss')
comparator.compare_files(reference, output_tss)

# compare results for instant discharge output
reference = os.path.join(out_path_ref, 'chanqX.tss')
output_tss = os.path.join(self.out_path_run, 'chanqX.tss')
reference = os.path.join(out_path_ref, 'chanqWin.tss')
output_tss = os.path.join(self.out_path_run, 'chanqWin.tss')
comparator.compare_files(reference, output_tss)

# compare mass balance error
Expand Down Expand Up @@ -131,13 +131,13 @@ def run_kin(self, date_start, date_end, dtsec, dtsec_chan, type):
comparator = TSSComparator(atol,rtol)

# compare results for average discharge output
reference = os.path.join(out_path_ref, 'disX.tss')
output_tss = os.path.join(self.out_path_run, 'disX.tss')
reference = os.path.join(out_path_ref, 'disWin.tss')
output_tss = os.path.join(self.out_path_run, 'disWin.tss')
comparator.compare_files(reference, output_tss)

# compare results for instant discharge output
reference = os.path.join(out_path_ref, 'chanqX.tss')
output_tss = os.path.join(self.out_path_run, 'chanqX.tss')
reference = os.path.join(out_path_ref, 'chanqWin.tss')
output_tss = os.path.join(self.out_path_run, 'chanqWin.tss')
comparator.compare_files(reference, output_tss)

# compare mass balance error
Expand Down Expand Up @@ -170,13 +170,13 @@ def run_split(self, date_start, date_end, dtsec, dtsec_chan, type):
comparator = TSSComparator(atol,rtol)

# compare results for average discharge output
reference = os.path.join(out_path_ref, 'disX.tss')
output_tss = os.path.join(self.out_path_run, 'disX.tss')
reference = os.path.join(out_path_ref, 'disWin.tss')
output_tss = os.path.join(self.out_path_run, 'disWin.tss')
comparator.compare_files(reference, output_tss)

# compare results for instant discharge output
reference = os.path.join(out_path_ref, 'chanqX.tss')
output_tss = os.path.join(self.out_path_run, 'chanqX.tss')
reference = os.path.join(out_path_ref, 'chanqWin.tss')
output_tss = os.path.join(self.out_path_run, 'chanqWin.tss')
comparator.compare_files(reference, output_tss)

# compare mass balance error
Expand Down

0 comments on commit 55b6248

Please sign in to comment.