Fixed disconnect when output variable is chosen before "Load Graph" #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #77
The app disconnected if the selected SSPs were changed, then a new output variable was chosen (in that order). When trying to pull selected scenarios to plot when the output variable was changed, the app would take whichever SSPs were selected at that moment, rather than the ones that were actually used for the previous Hector run (i.e. it would try to fetch an output from a scenario that had not been run).
Solution:
After a Hector run (when the app first loads, or when Load Graphs is clicked), the scenario(s) for the run are stored in the R6 class. When the output variable is changed and that output is fetched from the core, the app now uses the selected scenario(s) from the R6 class rather than directly from the SSP input variable, making sure that the correct scenarios are used.
This PR closes #77