Skip to content

Commit

Permalink
Fix cases not being populated with invars and invals when loading fro…
Browse files Browse the repository at this point in the history
…m file
  • Loading branch information
scottshambaugh committed Mar 1, 2024
1 parent b46fe65 commit aeeebcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
- Demo running on remote server (AWS, etc)
- Variogram Sensitivity Analysis
- repr's for all main objects
- Flag on invals to tell if they were loaded from file
- Specify distribution when loading invars from file, to get pcts
### Known Bugs:
- Cannot plot a varstat in percentile space
----

## [Unreleased]
### Added
### Changed
* Fix cases not being populated with invars and invals when loading from file
### Removed


Expand Down
4 changes: 4 additions & 0 deletions src/monaco/mc_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,10 @@ def importInVars(self,
self.invars[valname].pcts = pcts
self.invars[valname].mapNums()

for case in self.cases:
case.invars[valname] = self.invars[valname]
case.invals[valname] = self.invars[valname].getVal(case.ncase)


vprint(self.verbose, f"InVals loaded from '{filepath.name}' and converted to variables",
flush=True)
Expand Down

0 comments on commit aeeebcd

Please sign in to comment.