Commit Graph
124 Commits
Author SHA1 Message Date
Jon Jenssen e0ff8e70c2 Work in progress 2025-08-15 12:54:41 +02:00
jonjenssen d764917daa Work in progress 2025-08-15 12:54:41 +02:00
Jon Jenssen b414e27176 . 2025-08-15 12:54:41 +02:00
Jon Jenssen 52fa1b79ae Work in progress 2025-08-15 12:54:41 +02:00
jonjenssen 431bf5d7ba Work in progress 2025-08-15 12:54:41 +02:00
Kristian Bendiksen 4397da9114 #12568 Python: Add example for extracting properties along well. 2025-08-08 08:58:31 +02:00
Kristian Bendiksen e539170884 #12568 Python: add API for sampling given positions in a grid case 2025-08-08 08:58:31 +02:00
Kristian Bendiksen 464dd46ea9 #12568 Python: Add support for reading XYZ coords and inc, azi and dogleg 2025-08-08 08:58:31 +02:00
Kristian Bendiksen f98399dff2 Python: add api for remove values from key-value store. 2025-08-08 08:58:31 +02:00
Kristian Bendiksen 90d1555de3 Python: add api for getting values back from key-value store. 2025-08-08 08:58:31 +02:00
Magne Sjaastad 377d300767 #12719 Allow import of same well multiple times
Also exposes the well path collection object through the project object, and updates examples.
2025-08-08 08:56:15 +02:00
Magne Sjaastad b74c711b11 #12689 Enables scripting for Non-Darcy perforation parameters 2025-08-06 08:45:58 +02:00
jonjenssen 7e95a1f8cd Python code linting changes detected by black 2025-08-04 15:25:05 +02:00
jonjenssen 09f180ee53 Add support for duplicating editable well paths from python 2025-08-04 15:25:05 +02:00
Magne Sjaastad 309c4af07e #12593 Simplify object methods exposed to Python 2025-06-16 11:05:00 +02:00
Magne 54cb841046 reorganize 2025-06-08 19:39:42 +02:00
Magne Sjaastad 7fe06ac06b Make the function parameters available for Sphinx 2025-06-08 14:23:33 +02:00
Magne Sjaastad eb284304ff #12542 Make sure case is open before accessing cell data
* Make sure case is open before accessing cell data
* Add Python example to compute average value for a set of cells
2025-06-01 10:45:38 +02:00
Kristian Bendiksen 1a55fa11c3 #12459 Add regular surface domain object. 2025-05-20 20:39:07 +02:00
Kristian Bendiksen 25f312e117 Python: use python version from mypy.ini (bumped to 3.11). 2025-05-20 20:39:07 +02:00
Kristian Bendiksen 7899736f05 Python ruff fixes
* Python: Clean up imports.
* Python: Clean up error handling example.
* Python: Remove unused local variables
* Python: Avoid comparing against True/False.
* Python: Remove unused name variable.
* Python: Reuse class definition type variable.
* Python: Fix more unused imports
* Black fixes
2025-05-16 15:46:45 +02:00
Kristian Bendiksen 752d4efc42 Update error handling in Rimc* classes. 2025-05-12 17:31:48 +02:00
Kristian Bendiksen 135695fcb5 #5556 Refactor python error handling. 2025-05-12 17:31:48 +02:00
Kristian Bendiksen 82206e6ae5 Janitor: fix test name. 2025-05-07 12:07:31 +02:00
Kristian Bendiksen e5dc280ce0 Add python api for creating corner point grid. 2025-05-07 12:07:31 +02:00
Kristian Bendiksen dd2fdad5dd #12342 Python: Add api for creating polygon
Fixes #12342.
2025-04-10 17:58:59 +02:00
Magne Sjaastad 6b332269b4 Add scripting to fishbones (#12286)
* Improve python code generation tests
* Add setValveLocations
* Move code into RimFishbonesDefines
* Add scripting to fishbones
* Add scripting methods for fishbones
* Add example and test
2025-03-25 08:31:08 +01:00
Magne Sjaastad cf2ae4ffb8 Python: Add support for manipulation of camera position
* Remove debug output in the views function
* Add scripting support for Mat4d
* Add scripting support to camera
* Separate updates for background color and font size
2025-02-17 18:27:16 +01:00
magnesj e8d10c4dfa Python code linting changes detected by black 2025-01-30 08:33:17 +01:00
Magne Sjaastad ecd006decb Update examples for 2024.12.2 2025-01-13 10:54:00 +01:00
Magne Sjaastad da69c1f049 Python: Enforce checking on script name to make sure conversion between camelCase and snake_case works correctly
* #12044 Python: Add Non-Darcy properties available in Python

* #12049 Python: Add checking for multiple consecutive upper case letters
The scripting keyword is transformed to snake_case for use in Python. When data in Python is sent back to ResInsight, the opposite operation happens. This concept works well for most variants of keywords, but there are some corner cases that is not working.

Add compile time checking to make sure that the scripting keywords are formatted correctly.

Fix keyword that has been formatted the wrong way and has never worked.

* Avoid running test if ResInsight executable path is not defined in env
* Make sure dash is allowed in enumeration text string
2025-01-10 18:25:46 +01:00
Magne Sjaastad 6fea38e95b Reset RIPS_DIST_VERSION to 1 2024-12-16 09:29:52 +01:00
Magne Sjaastad ddefd39fc2 Python: Make more well completion parameters available
Add access to all MSW parameters in Python : "msw_settings = well_path.msw_settings()"
Make all parameters of the well completion object available in Python.
2024-11-25 09:38:23 +01:00
Magne Sjaastad 383c7e071d Merge in latest changes from main (#11782)
Merge main into dev after release of 2024.9.1
Includes changes to build related to conflicting Python requirements

ortools is used in the Komodo environment. This environment is not compatible with libprotoc 27 and newer. Use pinning to limit version of libprotoc<27.

Add dependency on typing_extensions
2024-10-16 09:27:09 +02:00
Håvard Berland 6b4e7fbdc9 Solve Python SyntaxWarning when running tests
Using is in this way has been triggering a SyntaxWarning since Python 3.8
2024-09-13 13:47:26 +02:00
Kristian Bendiksen 93f856cc53 Python: increase launch timeout. 2024-09-05 09:06:21 +02:00
Magne Sjaastad b730a077f1 #11626 Python: By default, use port number assigned by GRPC
Using ResInsight in a server environment when many multiple versions of ResInsight is launched, can cause the port assignment to fail. Change the default value for launch_port from -1 to 0, as this will improve the logic used to assign a port to a new ResInsight session.

Using 0 will ask GRPC to find an available port to be used.
2024-08-21 09:29:18 +02:00
Samiha Hoque 4a2339661c fix: GrpcInterface/Python/dev-requirements.txt to reduce vulnerabilities
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-7448482
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-08-12 14:00:17 +02:00
Magne Sjaastad 51ff9579aa Merge remote-tracking branch 'origin/main' into dev 2024-06-05 14:45:47 +02:00
Magne Sjaastad 84a07eed2b #11463 Look for resinsight_executable in JSON
Search for resinsight_executable in JSON-file located at ./share/rips/rips_config.json
2024-06-05 14:33:07 +02:00
Magne Sjaastad 98144078c8 Rename to resdata
* Rename to resdata
* Remove development feature for storing grid import type in project file
* Clean up comments
2024-04-22 19:56:10 +02:00
Kristian Bendiksen b5666c333a Refactor connection between cases and views.
Eclipse grid views and contour maps are not longer a child of the case.
The views are not separate collections (one for grid and one for contour maps)
on root level.
2024-04-15 16:10:43 +02:00
Magne Sjaastad e94ac51568 Optionally install python modules defined in dev-requirements.txt 2024-02-15 09:47:20 +01:00
Magne Sjaastadandmagnesj 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 4b12f82583 Python: require python version >= 3.8. 2023-08-23 09:47:44 +02:00