-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Several of the objects from JutulDarcy has field that can be accessed through using a Julia Symbol as a dict key. An example:
state[:Reservoir][:Pressure]
Accessing these fields from Python becomes quite verbose:
state[jd.jl.Symbol('Reservoir')][jd.jl.Symbol('Pressure')]
We should either update JutulDarcy.jl to accept strings as keys as well, or find a less verbose access method on the Python side
Encountered objects (from PR #3) for this issue in PyJutulDarcy:
- DataDomain objects
- MultiModel objects
- The return value from
setup_reservoir_statewhich is aDict{Any, Any}. For this specific one, perhaps the wrapper should callsymdict_to_pydictbefore return?
For examples, see notebook/equilibrium_state.ipynb and set_secondary_variable! wrapper from PR #3.
Metadata
Metadata
Assignees
Labels
No labels