equinor / fmu-tools

fmu-tools is a library containing tools for pre- and post-processing in a Fast Model Update (FMU) context
https://equinor.github.io/fmu-tools/
GNU Lesser General Public License v3.0
9 stars 14 forks source link

Add rmsimport #173

Closed jcrivenaes closed 1 year ago

jcrivenaes commented 1 year ago

Inside RMS: Make it possible to load an internal module and solve some challenges (behind the curtain) that RMS has:

Say that "mylib.py" is a local library inside the RMS project:

import fmu.tools as ftools
mymodule = ftools.rms.import_localmodule(project, "mylib")
mymodule.somefunction(...)
codecov-commenter commented 1 year ago

Codecov Report

Merging #173 (c763995) into master (f3291e5) will increase coverage by 0.34%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
+ Coverage   79.41%   79.76%   +0.34%     
==========================================
  Files          34       35       +1     
  Lines        3620     3681      +61     
==========================================
+ Hits         2875     2936      +61     
  Misses        745      745              
Impacted Files Coverage Δ
src/fmu/tools/rms/__init__.py 100.00% <100.00%> (ø)
src/fmu/tools/rms/import_localmodule.py 100.00% <100.00%> (ø)
src/fmu/tools/qcproperties/qcproperties.py 96.73% <0.00%> (+0.03%) :arrow_up:
src/fmu/tools/ensembles/ensemble_well_props.py 88.05% <0.00%> (+0.14%) :arrow_up:
src/fmu/tools/qcproperties/_well2df.py 96.20% <0.00%> (+0.14%) :arrow_up:
src/fmu/tools/qcproperties/_grid2df.py 96.82% <0.00%> (+0.15%) :arrow_up:
src/fmu/tools/qcforward/_grid_statistics.py 91.34% <0.00%> (+0.25%) :arrow_up:
src/fmu/tools/qcproperties/_config_parser.py 91.20% <0.00%> (+0.29%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more