Commit Graph

7 Commits

Author SHA1 Message Date
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
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
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
1bacd41037
Add Python linting using black (#7276) 2021-01-26 20:48:01 +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
Gaute Lindkvist
2de5c9ce0b Move GrpcInterface into top level 2021-01-11 15:27:45 +01:00