Commit Graph

90 Commits

Author SHA1 Message Date
Jørgen Herje
8f50da0212 Backup - WIP 2024-03-06 15:32:23 +01:00
jorgenherje
de3a00a957 Python code linting changes detected by black 2024-03-05 14:24:28 +00:00
Jørgen Herje
1bdc8e95a1 BACKUP Testing to create enclosing polygon from triangles per cell - WIP 2024-03-05 15:23:46 +01:00
Jørgen Herje
091bd8163a Initial testing of CutAlongPloyline - WIP 2024-02-28 16:10:36 +01:00
Jørgen Herje
53af53024c Adjust python example 2024-02-27 12:59:22 +01:00
Jørgen Herje
8d7986b84d Adjust python script to add utm coords 2024-02-27 09:02:21 +01:00
Jørgen Herje
a4323c9e55 Rename python file 2024-02-26 08:49:21 +01:00
Jørgen Herje
bf93623390 Merge remote-tracking branch 'origin/grid-geometry-extraction' into grid-geometry-extraction 2024-02-22 15:38:56 +01:00
Jørgen Herje
cebc3676e9 Minor adjustments 2024-02-22 15:38:02 +01:00
jorgenherje
c966938193 Python code linting changes detected by black 2024-02-22 15:17:25 +01:00
Jørgen Herje
157d64d9d7 Merge remote-tracking branch 'origin/grid-geometry-extraction' into grid-geometry-extraction 2024-02-22 14:14:40 +01:00
Jørgen Herje
76f2607190 Initial GetGridSurface with IJK-filter 2024-02-22 14:10:37 +01:00
github-actions[bot]
9d186051d2 Python code linting changes detected by black (#11211)
Co-authored-by: jorgenherje <jorgenherje@users.noreply.github.com>
2024-02-20 10:43:36 +01:00
Jørgen Herje
9eec4e6d4b Initial testing of GetGridSurface with mocked data 2024-02-19 15:07:45 +01:00
Magne Sjaastad
9738e69f8d Add delete of object from Python
* Move several methods to protected
* Add delete() to Python rips objects
* Move functions to RiaGrpcHelper

Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2024-01-29 08:46:45 +01:00
magnesj
c6234483e6 Python code linting changes detected by black 2024-01-26 08:58:27 +01:00
Magne Sjaastad
14faf607f4 Improve error message for ResInsight exe and rips version mismatch 2024-01-18 08:54:56 +01:00
Magne Sjaastad
e67f09a4ff Add completions settings to example 2023-12-16 17:40:11 +01:00
Kristian Bendiksen
db77ea5762 Perforation Interval: make properties scriptable from Python. 2023-10-09 08:35:42 +02:00
Kristian Bendiksen
1edac5762d #10568 StimPlan Template: Add python api for appending Pressure Table Items 2023-09-07 09:18:41 +02:00
Kristian Bendiksen
7aabe8c4a8 Python: add type hinting to python code.
Types are checked using mypy.

Fixes #10394.
2023-08-23 09:47:44 +02:00
github-actions[bot]
e4d5871072 Python code linting changes detected by black (#10455)
Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2023-07-11 09:22:14 +02:00
Magne Sjaastad
f20a83c710 Add create_statistics_case
Remove original implementation not working in gridcasegroup.py
Add create_statistics_case object method
2023-07-11 09:22:14 +02:00
Magne Sjaastad
f72fcdd868 Use descendants() 2023-07-11 09:22:14 +02:00
Magne Sjaastad
ad4930db79 Add script used to compute statistics on generated data in Python 2023-07-06 12:58:22 +02:00
Magne Sjaastad
36811e7f94 Prepare for release RC_04
* Add example for import_case for ROFF
* Add field and object keywords
2023-06-12 15:52:20 +02:00
Jørgen Herje
862e67755a Add Python support for import of property files for .roff and .grdecl (#10183)
- Add RimcEclipseCase
- Add tests for import case properties (.roff and .grdecl)
- Make rips handle list of strings as input in Pyton API
2023-04-27 10:53:33 +02:00
Magne Sjaastad
eb8c0c1de7 Add missing include and update example 2023-02-05 10:24:44 +01:00
jonjenssen
21ccd733a8 Python code linting changes detected by black 2023-02-01 10:32:58 +01:00
Magne Sjaastad
c8dbf3d125 Trim spaces and avoid spaces in generated address text
* Trim spaces and avoid spaces in generated address text
* Fix unit test
2023-01-24 11:26:34 +01:00
Kristian Bendiksen
7215504b16 Python: add unit test for load_case for roff, roffasc and grdecl. 2023-01-06 14:57:17 +01:00
Kristian Bendiksen
8f33caef74 Fracture: Make conductivity type scriptable from python. 2022-12-20 08:44:42 +01:00
Kristian Bendiksen
69ccce225c #9470 Fracture Template: make perforation length scriptable.
Also use it in example script.
2022-11-25 07:41:27 +01:00
Kristian Bendiksen
26dd61a604 Python: Add api and example to get fracture template scale factors. 2022-10-28 15:09:34 +02:00
Kristian Bendiksen
737eb9693a Thermal Fracture: add api for changing time step from python 2022-10-24 12:01:34 +02:00
Kristian Bendiksen
a695edc13a #9386 Fractures: add python api to scale fracture templates 2022-10-24 07:45:29 +02:00
Kristian Bendiksen
accf5713ac #9323 Thermal Fracture: add python methods for importing fracture template.
Fixes #9323.
2022-10-06 10:07:37 +02:00
Magne Sjaastad
4a673b7cd5 Avoid crash when adding a grid case multiple times 2022-10-04 18:43:36 +02:00
Kristian Bendiksen
619807b81f Thermal Fracture: add python script for exporting template as surface. 2022-10-03 08:33:55 +02:00
Kristian Bendiksen
d046e2692c Fix python kill signal (#9320)
* Python: Fix incorrect call to os.kill.

Also make it work on platforms without unix signals.

* Python: Increase process file timeout to one minute.
2022-09-29 07:37:31 +02:00
Kristian Bendiksen
c2b5ab8d2c #9307 Python: avoid assigning same port number to multiple grpc sessions
* Python: avoid assigning same port number to multiple grpc sessions
* Add retry count when checking for port number file
* Use grpc to find and use port number
* Add test used to start several instances of resinsight at the same time
Testing up to 50 instances works well

* Python: allow launch_port == 0 to assign port by GRPC in Instance.launch().
Also allow longer wait before failing the port number file reading:
it can take some time to launch when launching lots of instances at
the same time.
2022-09-26 14:19:21 +02:00
Kristian Bendiksen
193bc35f6b #8876 Fracture: add option to use align dip with formation dip 2022-06-16 08:38:24 +02:00
Magne Sjaastad
2f2933174b Python : Split parameters into list of strings
Avoid space in parameters to be sent to ResInsight, always use list of strings
2022-03-22 10:18:20 +01:00
Magne Sjaastad
72ff44071d Merge pull request #8691 from OPM/platform-offscreen
Add example for headless plot export using Python
Fix childPtrArray issue
2022-03-15 15:32:48 +01:00
Magne Sjaastad
5c72d31cc9 Improve well path target configuration (#8570)
Improve the scripting possibilities for well targets
Added tests and examples
2022-02-19 13:18:49 +01:00
Magne Sjaastad
79614e09e9 #8555 Well Log Extraction : Fix missing curve data for no console 2022-02-15 15:43:44 +01:00
Magne Sjaastad
64bed86f8f Intersection : Add Python support for triangle and result values (#8505)
#8508 Python : Make sure an empty list will be received as empty list in Python

Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2022-02-07 17:38:19 +00:00
jonjenssen
8fe5d18765 Python code linting changes detected by black 2022-01-31 21:38:49 +01:00
Magne Sjaastad
ffc77516e8 Summary Import : Support cases with one file per time step (#8493) 2022-01-28 13:18:46 +01:00
Magne Sjaastad
b495284b18 Python : Improve summary data example 2021-12-16 15:13:23 +01:00