Skip to content

Errors while running westeros #419

Discussion options

You must be logged in to vote

ValueError: Scenario has year=[690, 700, 710, 720] and related values

As with #416, the key thing is to read the documentation. Here is the documentation for add_horizon(), the function you are calling. In particular:

Raises: ValueError – If the year set of the Scenario is already populated.

Seeing this error indicates you are not running the notebook cells one-by-one starting from a fresh Jupyter kernel and clean scenario, but rather that you have already called add_horizon() at least once on this Scenario object. The tutorial code works if you run each cell, once, in order. If you make a mistake, you should try to restart the kernel.

The documentation page on prequisite knowledge & …

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by glatterf42
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #419 on December 15, 2020 11:15.