Skip to content

New test models only have the first row for constant values #63

Description

@enekomartinmartinez

Hi,
The newest test I added only have first row for constant values output.tab is like:

Time FINAL TIME INITIAL TIME oscilating var constant var SAVEPER TIME STEP
0 2 0 0.841471 100 1 1
1 0.410781 1
2 0.893855 1

is this okay for everyone, I solved this issue in PySD adding the following lines to repeat the value over the rows:

# if for Vensim outputs where constant values are only in the first row
if np.isnan(expected[col].values[1:]).all():
    expected[col] = expected[col].values[0]

is it possible to do something similar in the other repositories that are using this repo? This way we avoid post-processing output.tab files and make easier contributing with new test models.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions