Commit Graph

87 Commits

Author SHA1 Message Date
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
583c248cf9
Janitor issues
* Use horizontalAdvance
* Remove unused code
* Hide some warnings from Qt code
* Remove message for _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
* Use CMP0077 NEW
* Move roff libraries to folder Thirdparty
* avoid operator()==
* Remove cmake_minimum_required and set version to 3.15
2023-01-24 12:29:27 +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
Magne Sjaastad
abc9e82ff5 System: Enable and use c++20
Enable c++20 in top level cmake. Keep c++17 for GrpcInterface, as the protoc tool does not work with c++20.
Several code adjustments to fix compiler issues.
2023-01-19 08:33:02 +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
Magne Sjaastad
38bfa9ef1f
#9588 Accumulate N cells for AABB tree 2022-12-19 15:24:53 +01:00
Magne Sjaastad
cfa9d07d8e #9563 Reorganize how and when objects are deleted when shutting down GRPC 2022-12-11 10:15:26 +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
3a77d77689 #9363 StimPlan: Incorrect extraction size when changing extraction offsets from python 2022-10-24 07:47:09 +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
Magne Sjaastad
c8f642d83a
Add rename case to summary and grid cases (#9204)
* #9203 Summary Case : Add rename to right-click menu
* Janitor: Move ID and description to private fields
* Eclipse Case: Add rename to right-click menu
* Rename feature
2022-08-18 07:12:23 +02:00
Kristian Bendiksen
193bc35f6b #8876 Fracture: add option to use align dip with formation dip 2022-06-16 08:38:24 +02:00
Kristian Bendiksen
75d096eca2 #8540 Python: read only active cells for active_cell_property 2022-06-01 13:16:58 +02:00
Magne Sjaastad
c74701b687 Rename several child() and children() functions 2022-05-31 15:05:07 +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
0e57cfe201 Memory Management : Adjustment and fixes
Add release of several static singleton objects
Fix several minor memory leaks
2022-03-03 14:39:41 +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
2d2bf0bbc7
CMake : Improve handling of compiler flags (#8486)
#8478 Code cleanup to fix some warnings

Several adjustments to improve the specification and usage of compile flags.
2022-01-26 10:08:28 +01:00
Magne Sjaastad
891a2e7c29 #8375 Flow Vectors : Avoid recomputing NNCs when accessing flow data
Avoid include of RigNNCData.h in header files.
2021-12-20 10:23:52 +01:00
jonjenssen
58f5c2e92b
Stop ResInsight from crashing when calculating cell volume (#8374)
* Stop ResInsight from crashing when calculating cell volume
2021-12-17 16:10:24 +01:00
Magne Sjaastad
b495284b18 Python : Improve summary data example 2021-12-16 15:13:23 +01:00
Magne Sjaastad
0d213e659c #8371 Make sure all NNC faces are created and assigned
Make sure that the first cell in RigConnection is assigned the lowest cell index. Assign the opposite face if the cell indexes are swapped.
In RigCellFaceGeometryTools, test both combinations of (cellA, cellB) and (cellB, cellA)
2021-12-16 14:25:21 +01:00
Magne Sjaastad
4090e70507 #8356 Summary Data : Add support for use of summary summary data from Python 2021-12-14 12:01:06 +01:00
Magne Sjaastad
6847e0573e #8316 Summary vector names: Use stripped quantity name to find category 2021-11-25 20:47:12 +01:00
Magne Sjaastad
4c2a70fa40 #8297 Python : Do not modify result container when reading grid result data
Avoid resize if data is already present
Improve functions for getting grid data and accessing single cell values
Add example for read and write of grid data
2021-11-18 13:45:55 +01:00
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