Commit Graph

222 Commits

Author SHA1 Message Date
Magne Sjaastad
f77882058b Python Doc : Add examples 2019-09-03 07:25:51 +02:00
Magne Sjaastad
2e6d86d213 Python doc : Added examples page 2019-09-02 21:17:21 +02:00
Gaute Lindkvist
551e459942 #4655 Python Fix crash when streaming properties to ResInsight 2019-09-02 15:12:22 +02:00
Magne Sjaastad
97f18962de Python doc : Add doc directly in client code for export flow characteristics 2019-09-02 15:11:34 +02:00
Magne Sjaastad
ca644ba477 Python doc : Add more doc and example for timestep class 2019-09-02 14:55:21 +02:00
Gaute Lindkvist
6880483453 gRPC: bundle grpcio-tools rather than just grpcio 2019-08-27 15:49:49 +02:00
Gaute Lindkvist
6cd37e1130 Python: updated AppInfo.py to reflect merger of App and Instance 2019-08-27 10:46:24 +02:00
Gaute Lindkvist
7b9e6677ff GRPC: Move to version strings rather than int to avoid octal numbers 2019-08-26 15:48:20 +02:00
Gaute Lindkvist
222f230687
#4578 Add commands for create and clone view (#4625) 2019-08-26 10:04:44 +02:00
Gaute Lindkvist
a1f9c4c1cd Comment for circular import of Python module 2019-08-26 10:03:56 +02:00
Gaute Lindkvist
09c1ba26b3
Merge pull request #4628 from OPM/feature-python-command-line
#4610 Python: Add support for sending in command line arguments when launching ResInsight
2019-08-26 10:02:21 +02:00
Gaute Lindkvist
f279aeced7 #4610 Enable command line options and port number in rips.Instance.launch() 2019-08-23 15:31:44 +02:00
Gaute Lindkvist
72a954e9f7 Python: Stop copying Python files to build folder. 2019-08-23 15:31:32 +02:00
Magne Sjaastad
d663ea2ae7 Documentation updates 2019-08-23 11:44:28 +02:00
Magne Sjaastad
d6c80f52a7 Documentation updates 2019-08-23 11:42:14 +02:00
Magne Sjaastad
45b53af1be #4611 Python : Remove reference do deleted module App 2019-08-23 11:42:14 +02:00
Gaute Lindkvist
2e49670f40 #4578 Add commands for create and clone view 2019-08-23 11:25:00 +02:00
Magne Sjaastad
a86ae13bb7 Rename command line argument to --server 2019-08-22 14:42:14 +02:00
Magne Sjaastad
4dcd7663c9
Merge pull request #4618 from OPM/feature-python-instance-app
#4611 Merge Python classes app and instance
2019-08-22 14:19:37 +02:00
Gaute Lindkvist
4afe159f91 #4611 Remove App.py 2019-08-22 14:16:51 +02:00
Gaute Lindkvist
fb4aff4836 GRPC Build issues: make sure we don't run configure_file on generated sources 2019-08-22 13:32:25 +02:00
Gaute Lindkvist
5b0d77f19a Configure setup.py and RiaVersionInfo.py first 2019-08-22 12:53:08 +02:00
Gaute Lindkvist
07cb9e52cb #4611 Merge python classes App and Instance 2019-08-22 11:32:08 +02:00
Gaute Lindkvist
28bb8641d2 #4615 Make Python code show up in Visual Studio project 2019-08-22 10:42:55 +02:00
Gaute Lindkvist
4af1963ac0
#4551 Optionally Bundle grpcio Python module and dependencies (#4602)
* #4551 Optionally Bundle grpcio Python module and dependencies

* More status messages
2019-08-21 15:29:25 +02:00
Gaute Lindkvist
7bfe4f4bfe
#4603 Python: add case Id to exportSnapshots (#4604)
* #4603 Python: add case Id to exportSnapshots
* Fixup after review
2019-08-21 15:11:29 +02:00
Gaute Lindkvist
6c0e2bb3ad #4597 Python: add exportSnapshots example and more comments in examples 2019-08-19 13:48:36 +02:00
Gaute Lindkvist
edfb39c9b7 #4596 Python: Add gridPath method to Case and add simpler activeCellInfo method 2019-08-19 13:48:36 +02:00
Gaute Lindkvist
68d3ffdbb2 #4596 fix applyCellResult legend range 2019-08-19 13:48:36 +02:00
Gaute Lindkvist
824ec5cef6 Python: Rename example directory to PythonExamples
* This is so that when we add the folder to the Script Path it will look more sensible to the user.
2019-08-19 08:46:09 +02:00
Gaute Lindkvist
071bb42101 #4576 Python: Add tests to check for expected exceptions 2019-08-14 09:43:44 +02:00
Gaute Lindkvist
197279ccbf #4576 Python: Improve error handling and add example 2019-08-14 09:22:34 +02:00
Gaute Lindkvist
f3d8e3dbdc #4566 #4572 Python: improve behaviour when sending more data than expected in property streams 2019-08-13 14:39:28 +02:00
Gaute Lindkvist
499798abc5 gRPC: Improve naming of streaming callbacks 2019-08-13 13:17:05 +02:00
Magne Sjaastad
3f7a5ff29c cmake : Rename to RESINSIGHT_GRPC_INSTALL_PREFIX 2019-08-12 09:52:19 +02:00
Magne Sjaastad
e70cf3c736 cmake : Rename to RESINSIGHT_GRPC_PYTHON_EXECUTABLE 2019-08-12 09:52:19 +02:00
Gaute Lindkvist
02107a7a93 Remove all sys.path.inserts from Python examples. 2019-08-11 14:51:48 +02:00
Gaute Lindkvist
0a30e6c340 #4547 Add simplified synchronous methods for activeCellProperty and gridProperty 2019-08-08 15:17:39 +02:00
Magne Sjaastad
136251c4b1 Python doc : Add modules GridCaseGroup and View 2019-08-08 14:41:07 +02:00
Magne Sjaastad
54ed32e474 Python doc : Update to hugo syntax 2019-08-08 14:41:07 +02:00
Magne Sjaastad
d9b1cfec3a Update sphinx doc 2019-08-08 14:41:07 +02:00
Magne Sjaastad
209040899a Python : Add comment 2019-08-08 08:23:03 +02:00
Magne Sjaastad
4381f679e5 Python pytest : Issue project.close() after each test 2019-08-08 08:15:04 +02:00
Gaute Lindkvist
d9d9e388da Python: Update API documentation 2019-07-31 11:03:09 +02:00
Gaute Lindkvist
213591f522 #4526 Make sure setting wells for flow diagnostics result works and add simplified API 2019-07-31 09:53:45 +02:00
Gaute Lindkvist
2940713a42 Python: fixes that makes all examples run properly again 2019-07-30 15:26:38 +02:00
Gaute Lindkvist
f61df01694 #4526 enable setting flow diagnostics results through Python 2019-07-30 12:32:10 +02:00
Gaute Lindkvist
21a444fd70 #4523 Add simplified interface for grid case group statistics 2019-07-30 12:32:10 +02:00
Gaute Lindkvist
d9a0953b45 #4463 Added command for creating grid statistics 2019-07-30 12:32:10 +02:00
Gaute Lindkvist
beb6256f53 Make it possible to edit case group statistics 2019-07-30 12:32:10 +02:00
Magne Sjaastad
4e33b7454f Python : Avoid closing existing ResInsight when pytest is closing down 2019-07-30 11:55:13 +02:00
Magne Sjaastad
e54d42a0da #4527 Export Flow Characteristics : Add support for Python execution 2019-07-30 11:27:25 +02:00
Magne Sjaastad
a20c56d21d Python : Fix wrong casing 2019-07-30 10:35:46 +02:00
Gaute Lindkvist
d6d1ebd25d #4518 Set grpc.enable_http_proxy=False in Python client code 2019-07-25 10:38:42 +02:00
Gaute Lindkvist
2971c74c2e #4519 Fix error in example python script 2019-07-25 07:36:50 +02:00
Gaute Lindkvist
c2c312068c Python: enable more status messages and warnings for gRPC code generation 2019-07-24 11:13:23 +02:00
Gaute Lindkvist
6b7a9b8da5 #4463 Working creation of grid case groups 2019-07-18 13:43:28 +02:00
Gaute Lindkvist
7a2b9926a0 Allow relative paths in replace case 2019-07-18 13:43:28 +02:00
Gaute Lindkvist
bbc8750d8f #4516 Fix replaceCase in Python gRPC 2019-07-16 17:12:08 +02:00
Gaute Lindkvist
f2c72a0e71 #4484 Added test for replaceCase that fails 2019-07-15 15:50:55 +02:00
Gaute Lindkvist
3898b97c8a Fix Python tests 2019-07-15 14:05:34 +02:00
Gaute Lindkvist
dcd3ff6754 #4423 Improve API for setting cell results 2019-07-15 12:30:31 +02:00
Gaute Lindkvist
439913b7b1 #4423 First implementation of PdmObject exchange 2019-07-15 12:30:31 +02:00
Gaute Lindkvist
f59a13cd18 Python: add system for generating markdown docs 2019-06-14 16:09:45 +02:00
Gaute Lindkvist
055cb732db Python: fix up some examples 2019-06-14 16:09:45 +02:00
Gaute Lindkvist
3611d32e9e Python: make rips packages complete 2019-06-14 09:19:23 +02:00
Gaute Lindkvist
1d8a417e33 Python: move examples, tests and generated inside rips folder so they are packaged in rips pip-package 2019-06-12 08:29:41 +02:00
Gaute Lindkvist
fe268cd25f Python: create PyDoc type docs, fix some inconsistencies in code and update rips module version 2019-06-11 15:15:26 +02:00
Gaute Lindkvist
c2bad4a686 #4421 Python: Add GRPC status to About dialog
* If the finish comes because the server is shut down,
  there is no m_eclipseCase
2019-06-11 12:40:35 +02:00
Gaute Lindkvist
8283d1ac86 Python: test for opening project 2019-06-11 11:08:11 +02:00
Gaute Lindkvist
3e9ef51c6b Python: fix paths to work even if you launch a script from a different folder 2019-06-06 14:41:40 +02:00
Gaute Lindkvist
8ca8d5d2d8 Python: increase timeout for looking and more informative error message if it fails 2019-06-06 14:37:57 +02:00
Gaute Lindkvist
eaf795112f Python: increase the amount of times we try to connect to ResInsight 2019-06-06 14:23:18 +02:00
Gaute Lindkvist
a0334fc482 Python: disable brugge tests 2019-06-06 14:00:47 +02:00
Gaute Lindkvist
6dbe5964a1 Python: avoid cleanip in destructor of Instance. It doesn't work right on Linux. 2019-06-06 13:50:15 +02:00
Gaute Lindkvist
ea45d07b85 Python: fix console flags for test 2019-06-06 13:50:14 +02:00
Gaute Lindkvist
91bbbdbe74 Python: add poropermx test 2019-06-06 13:50:14 +02:00
Gaute Lindkvist
df2fe42c4a Python: gRPC timeout 2019-06-06 13:15:42 +02:00
Gaute Lindkvist
c075f7b352 Python: wait for ResInsight to start 2019-06-06 13:15:42 +02:00
Gaute Lindkvist
57e282eb7e Python: return time step arrays directly rather than struct containing time step arrays 2019-06-06 13:15:42 +02:00
Gaute Lindkvist
4701ea5134 #4430 Implement GetDaysSinceStart and add way of connecting to existing ResInsight in pytest 2019-06-06 13:15:42 +02:00
Gaute Lindkvist
05451aa904 Python: tidied up tests 2019-06-06 13:15:42 +02:00
Magne Sjaastad
8301827516 cppcheck :Fix missing initialization 2019-06-05 22:47:00 +02:00
Gaute Lindkvist
1a337ea0f8 #4474 Add command for getting runtime info (i.e. console/gui)
* Also fixed up some tests when running in console
2019-06-05 15:45:22 +02:00
Gaute Lindkvist
a0d81a08e8 #4465 Implement all remaining command file commands and add tests for some commands 2019-06-05 11:26:19 +02:00
Gaute Lindkvist
5b39860a41 #4460 Improved error messages for pytest 2019-06-05 08:59:30 +02:00
Gaute Lindkvist
196e7df0fa #4460 Further gRPC/Python tests 2019-06-04 20:35:30 +02:00
Gaute Lindkvist
8bbbaec9df gRPC: multi-case test 2019-06-04 13:26:30 +02:00
Gaute Lindkvist
3530c8b3de #4460 #4424 Adding Exit() to the gRPC interface plus implemented test framework 2019-06-04 12:59:06 +02:00
Gaute Lindkvist
930abbf02f Python: added tests and made Octave InputPropTest.m general
* removed non-general hard-coded grid sizes and added timing to Octave test
* added two Pythonbenchmarks (sync and async) for the same test
2019-06-04 10:49:35 +02:00
Gaute Lindkvist
b6427d84c3 gRPC: enable multiple server->client streams of property data at the same time 2019-06-04 10:33:11 +02:00
Gaute Lindkvist
5379e95857 Python: more examples + a comparable Octave Example 2019-06-04 08:45:13 +02:00
Gaute Lindkvist
35059d1d67 #4428 Implement more commands 2019-06-03 21:22:03 +02:00
Gaute Lindkvist
fe2d352f84 #4462 Python Fix examples to run well with either install module or without 2019-06-03 21:11:27 +02:00
Gaute Lindkvist
a468532d7f
#4457 Python: clean up grpc api, Python client API and make installable python package (#4456)
* gRPC: Make names more consistent

* gRPC: clean up case info and improve Python API for cases

* gRPC: much more object oriented Python interface

* Python: Make a proper pip-installable package

* Update rips Python package to auto generate setup.py with version number

* Python: add setup.py to gitignore

* Python: Update Python RIPS interface

* gRPC: Remove example client from cmake file and unit test

* gRPC: Fix up unit test after merge and hide warnings

* gRPC: fix up python client code
2019-06-03 14:33:16 +02:00
Magne Sjaastad
db97951a80 Fix casing : Add file with correct casing 2019-05-31 10:17:44 +02:00
Magne Sjaastad
ec5e655617 Fix casing : temp delete 2019-05-31 10:15:11 +02:00
Gaute Lindkvist
596f098d43 Python: Add more examples and fix async streaming code 2019-05-30 18:52:38 +02:00
Gaute Lindkvist
a6cdec0816 Python: enable storage of new results and improve reliability 2019-05-30 18:52:16 +02:00
Magne Sjaastad
5b7b9993a0 Remove duplicate if statement 2019-05-29 15:12:34 +02:00
Gaute Lindkvist
14ff796392 gRPC: renames 2019-05-27 07:29:20 +02:00
Gaute Lindkvist
c9d56bda9c gRPC: Move all python code into the ApplicationCode/GrpcInterface folder 2019-05-25 09:34:44 +02:00
Gaute Lindkvist
9ac15ec553 gRPC: Add SetGridProperties.py example 2019-05-25 09:34:44 +02:00
Gaute Lindkvist
7c475e72e4 gRPC: Add SetResultValues.py example 2019-05-25 09:34:44 +02:00
Gaute Lindkvist
af054fb95e #4428 Implement support for repeated fields as parameters and add exportWellPaths to client library 2019-05-24 13:39:44 +02:00
Gaute Lindkvist
c7f8edad04 #4428 implement all command file commands as gRPC services 2019-05-24 13:39:44 +02:00
Gaute Lindkvist
c2996bf638 Further build fixes related to RiaLogging 2019-05-24 08:58:04 +02:00
Gaute Lindkvist
79645ceed9 gRPC: Fix Linux build issues 2019-05-24 08:00:50 +02:00
Gaute Lindkvist
cc031e7895 #4429 Implement return values from the gRPC Command execution 2019-05-23 16:47:02 +02:00
Gaute Lindkvist
650af20e06 #4429 Implement return status handling for command file interface 2019-05-23 16:47:02 +02:00
Gaute Lindkvist
6ad0c8fbe1 gRPC: Fix up comments and clean up callback code 2019-05-23 16:47:02 +02:00
Gaute Lindkvist
690ab840c5 Minor gRPC updates 2019-05-22 16:03:03 +02:00
Gaute Lindkvist
c30721593e #4430 Implement client -> server streaming framework and SetActiveCellProperty 2019-05-22 15:30:09 +02:00
Gaute Lindkvist
90af7a2e6b gRPC: Cleanup streaming callback. DataCount storage is not necessary 2019-05-22 08:45:25 +02:00
Gaute Lindkvist
ac18bc20ec Remove requirement of assignReply from StateHandler template-interface
* This is handled internally and is not required by the interface
2019-05-22 08:30:22 +02:00
Gaute Lindkvist
d1a0799861 Implemented getGridCellResults() 2019-05-21 16:33:41 +02:00
Gaute Lindkvist
86e202aed0 #4430 Implement GetAvailableProperties() and GetActiveCellResults() 2019-05-21 13:40:42 +02:00
Gaute Lindkvist
5e23bd5578 #4427 Add proto files to IDE project 2019-05-20 15:31:40 +02:00
Gaute Lindkvist
177a54615b Remove Python sources groups on Linux to fix build issue 2019-05-20 15:20:49 +02:00
Gaute Lindkvist
b44f0a2029 #4418 Handle all queued gRPC requests per main loop iteration
* This means a streaming request should be completed in one main loop iteration
2019-05-20 15:20:49 +02:00
Gaute Lindkvist
4aad1e61d1 Fix tabs in CMakefiles 2019-05-20 15:20:49 +02:00
Gaute Lindkvist
922386c673
#4416 First implementation of gRPC-based Python interface
First implementation with Asynchronous gRPC server, a few services and some client python code.
2019-05-20 13:21:02 +02:00