Commit Graph

48 Commits

Author SHA1 Message Date
Magne Sjaastad
d21be5823d #8212 Python : Make it possible to define the azimuth angle for a fracture template 2021-10-28 10:56:23 +02:00
Magne Sjaastad
3d7d3874cf Example of elastic property scaling 2021-10-26 09:54:40 +02:00
Magne Sjaastad
e711d94d49 Scripting : Show script errors in message window
When assigning values from Python to a Pdm object, make sure the errors are displayed in the message window.
2021-10-25 12:22:36 +02:00
Magne Sjaastad
295186f99b #8180 : Add example for fracture template orientation 2021-10-25 12:22:36 +02:00
Magne Sjaastad
915745c389 Janitor: Cleanup names of scripted classes in Python
Avoid Rim prefix and use keyword alias to ensure backwards compability
2021-10-25 12:22:36 +02:00
Kristian Bendiksen
8e0b69b3e7
#8118 Python: rename new_stim_plan* and new_fracture* method names (#8175) 2021-10-24 09:13:42 +02:00
Magne Sjaastad
68955dc914 Python : Fix vector count for ESMRY and use tmp folder for export 2021-10-13 14:24:32 +02:00
Kristian Bendiksen
f407acd5fa #8034 Pass reader settings to eclipse loading methods. 2021-09-29 09:40:27 +02:00
Kristian Bendiksen
6a978b57f1 #8035 Python: Add save project example. 2021-09-28 08:27:18 +02:00
Kristian Bendiksen
ed2beec359 #8038 Python: add api to insert a fracture template and a fracture at given MD 2021-09-24 12:32:42 +02:00
Kristian Bendiksen
41dc2244fc #8032 Ensemble Well Logs: change selected property from PERMZ to PERMX 2021-09-22 13:50:59 +02:00
Magne Sjaastad
acdcbe44b4
Merge pull request #7975 from OPM/7973-custom-export-filename
Export Completions : Custom export file name fails in some cases
2021-09-09 10:16:37 +02:00
Magne Sjaastad
97d678d9e8 #7933 Export Snapshot : Fix failing example 2021-09-02 09:25:22 +02:00
Magne Sjaastad
b397c230ac #7940 Python : Traverse inheritance stack to find correct script class name 2021-09-02 08:55:35 +02:00
Magne Sjaastad
be29b278f2
#7929 Python : Avoid creation of new view when opening case 2021-09-01 08:25:22 +02:00
Kristian Bendiksen
414ee77aa8
#7834 Ensemble Well Logs: add depth equalization (#7914) 2021-08-30 09:18:34 +02:00
Magne Sjaastad
3a94078867
Support optimized surface export from grid model layers
* #7885 Update opm-common with optimized coordinate import
* #7885 Allow null as default result from a script method
* #7885 Propagate default parameter values to generated Python code
* #7885 Add CommandRouter as hub for worker methods
* #7885 Add support for use of CommadRouter from Python
2021-08-23 11:58:32 +02:00
Kristian Bendiksen
966bcd1e77
Ensemble surface import and statistics 2021-08-17 13:38:12 +02:00
Magne Sjaastad
5fccd143ba Remove obsolete doc files 2021-08-14 17:16:14 +02:00
Magne Sjaastad
8dbb1d5ccd
Improve well path modeling
* Improve handling of MD at first target
* When sea level well target is disabled, update MD of first target
* Show well target spheres by default, allow toggling of spheres
* Activate well target modifiers when clicking on well targets
* Remove selection update causing an unstable 3D view
* Improve display and handling of multiple locations
* Add special 3D target for tie in well target
* Add slider to tie in MD input field
* Show MD in well path target table
* Delete all well path laterals when deleting a well path

* Python : Add lateral to parent well
* Python : Add perforation interval
2021-08-13 16:48:33 +02:00
Magne Sjaastad
92bd783a10 Allow two different counts for summary vector reader 2021-08-04 19:13:53 +02:00
Kristian Bendiksen
f799ee2f3d #7842 Python: fix undefined variable on version mismatch.
The location variable was not defined when creating the error message
for version mismatch between rips and application.
2021-08-03 13:29:03 +02:00
Magne Sjaastad
eb3c52aeb1 Python adjustments (#7809)
* #7797 Well Targets: Add scripting capability
* #7794 Python : Do not update childField or childFieldArray
* #7797: Python - Add scripting to well path collection
- Extend the pdmobject.py with method add_object()
- allow objects to be created from Python in well path collections
- add well targets to modelled well path

* #7795 Python : Make sure referenced generated classes are defined
* #7810 StimPlanModel: clean-up python generation
* Python : Always use empty string as default value for ptrFieldValue
It can happen that a ptrField is assigned to a pointer on object construction. (FaciesProperties) Make sure that constructor always assigns an empty string.

Co-authored-by: magnesj <magnesj@users.noreply.github.com>
Co-authored-by: Kristian Bendiksen <kristian.bendiksen@gmail.com>
2021-06-25 14:44:52 +02:00
Kristian Bendiksen
3b5eeb87fa #7715 Add python interface for creating well log plots 2021-06-25 08:45:39 +02:00
Magne Sjaastad
47ad2fc21b Python : Adjustment to setup.py.cmake 2021-06-14 11:37:20 +02:00
Magne Sjaastad
9d58769f89 Janitor : Avoid include of header file in header 2021-05-26 13:28:45 +02:00
Magne Sjaastad
65afd84db5 Documentation : Add line breaks to make sure Sphinx produce correct doc 2021-05-04 15:24:01 +02:00
Magne Sjaastad
010e964ea8 #6878 Export Completion: Make subset of settings available from Python
Python code linting changes detected by black
2021-05-03 14:15:43 +02:00
jonjenssen
36b9f38e3b Python code linting changes detected by black 2021-04-27 08:01:15 +02:00
Magne Sjaastad
52799e8b4c
Minor HDF adjustments (#7577)
* #7575 Summary HDF : Do not import summary if no UNSRMY file is found
* #7575 Summary HDF : Add optional check on time stamp of h5 file
* Use std::filesystem to check file access
* Do not keep h5 file open
2021-04-16 10:52:30 +02:00
jonjenssen
df53e80913 Move GeoMech PDM files into subfolder 2021-03-10 14:45:52 +01:00
Magne Sjaastad
9cb59f9ea4 #7411 Python : Copy Python module to build folder
Remove obsolete _unityTargetName used by cotire
2021-02-23 07:07:07 +01:00
Kristian Bendiksen
530c6d3e85 #7339 StimPlanModel: Update python api changes in pdm objects.
The eclipse cases are now set on the StimPlanModelTemplate, not on the
StimPlanModel.
2021-02-19 12:18:30 +01:00
Magne Sjaastad
cc292b197a
Result Divided by Area: Establish concept used to compute flow velocity and normalized trans (#7349)
* Geometry Tools : Add convenience functions for polygon area

* #7232 Result Divided by Area: Add cell face result and show in GUI

Native support for flow rate is given by mass rate (mass per time) over a cell face. Add a derived result that takes flow rate divided by cell face area to get velocity (distance per time).

Add support for this concept on relevant native results, and indicate this result type in UI using a "/A" postfix

* Speed up divided-by-area calculations by using openmp

* Some refactoring of result data access.

* Make sure NNC data is scaled correctly in vector flow viz.

Co-authored-by: jonjenssen <jon@soundsoft.no>
2021-02-11 03:01:17 +01:00
Magne Sjaastad
1bacd41037
Add Python linting using black (#7276) 2021-01-26 20:48:01 +01:00
Magne Sjaastad
0ec612ae86
Create LGR : Use all well cells if no completions are defined (#7285)
* #7274 Create LGR : Use all well cells if no completions are defined

* #7263  Create LGR : Not working in console mode 

Guard access to RiaApplication

* Add pytest for create_lgr_for_completion

* Add pytest for create_lgr_for_completion

* #7289 Script : Add execute of last used script

* #7291 Python : Guard access to RiaMainWindow
2021-01-26 20:34:31 +01:00
Gaute Lindkvist
0d3ea8ede1 Add new passthrough module for rips generated_classes and refactor imports 2021-01-21 20:10:14 +01:00
Gaute Lindkvist
a2ee4c8fef Add a new pass-through module for resinsight_classes.py to aid documentation 2021-01-21 20:10:14 +01:00
Gaute Lindkvist
861577922a Make CMake-setup for python sources work 2021-01-21 20:10:14 +01:00
Gaute Lindkvist
ecd6366e88 Update load_case.py and open_project.py to use test model path in install folder 2021-01-15 15:42:26 +01:00
Gaute Lindkvist
0ee915b598 Another Python example 2021-01-15 15:42:26 +01:00
Gaute Lindkvist
8914ae106c #7199 add protobuf and wheel to rips requirements 2021-01-13 15:38:11 +01:00
Gaute Lindkvist
e1a6c4ef65 #7200 Add important Python examples 2021-01-13 15:38:11 +01:00
Magne Sjaastad
9468c673fe Command line arguments : Add null pointer guards 2021-01-12 21:57:09 +01:00
Gaute Lindkvist
493f257e5e Fix wrong use of "is" and "is not" in Python if-statements 2021-01-12 11:23:30 +01:00
Kristian Bendiksen
39e678ae81 Remove target_link_directories calls.
The link directories are handled by target_link_libraries.
2021-01-12 11:05:53 +01:00
Gaute Lindkvist
04d5daca67 Create a new ApplicationExe project for the executable 2021-01-11 15:27:45 +01:00
Gaute Lindkvist
2de5c9ce0b Move GrpcInterface into top level 2021-01-11 15:27:45 +01:00