Commit Graph

149 Commits

Author SHA1 Message Date
Gaute Lindkvist
0125b13241 Additional python PEP 8 fixes 2019-09-23 15:26:49 +02:00
Gaute Lindkvist
a2bad82391
#4736 System python command refactor (#4743)
* Move case loading commands from Commands to project and case
* Major refactor
* Fix problems with Python examples
* Add ability to export snapshot from just one view + fixup
* Case comments and black
* Make all modules pass pylint test
2019-09-23 11:50:33 +02:00
Gaute Lindkvist
2b33592c66 Example renames 2019-09-19 15:14:01 +02:00
Gaute Lindkvist
502a1532b6 #4736 View.py renames 2019-09-19 15:02:55 +02:00
Gaute Lindkvist
3aa3bb67a7 #4736 Properties renames 2019-09-19 14:25:38 +02:00
Gaute Lindkvist
ca919402e9 fixes 2019-09-19 14:10:52 +02:00
Gaute Lindkvist
505660f9d6 #4736 Project renames 2019-09-19 14:02:23 +02:00
Gaute Lindkvist
9a0f135431 #4736 test fixes 2019-09-19 13:56:29 +02:00
Gaute Lindkvist
9bc2781817 #4736 Instance.py renames 2019-09-19 13:34:34 +02:00
Gaute Lindkvist
8ff0c05760 #4736 GridCaseGroup.py renames 2019-09-19 13:27:26 +02:00
Gaute Lindkvist
0657bd1f11 #4736 Commands.py renames 2019-09-19 13:25:04 +02:00
Gaute Lindkvist
e5987c26d7 #4736 Case.py renames 2019-09-19 13:15:58 +02:00
Gaute Lindkvist
b93f4fac0f #4661 Python: Fix pip-package generation and add instructions 2019-09-03 12:25:02 +02:00
Magne Sjaastad
0237e885ad Python Doc : Add Python logo 2019-09-03 11:10:59 +02:00
Magne Sjaastad
b287e2e128 Python doc : Split into three python documents 2019-09-03 10:59:00 +02:00
Magne Sjaastad
70394f95e5 Python doc : Add more tables 2019-09-03 10:55:26 +02:00
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
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
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
Gaute Lindkvist
4afe159f91 #4611 Remove App.py 2019-08-22 14:16:51 +02:00
Gaute Lindkvist
07cb9e52cb #4611 Merge python classes App and Instance 2019-08-22 11:32:08 +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
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
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
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
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
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
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
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
c9d56bda9c gRPC: Move all python code into the ApplicationCode/GrpcInterface folder 2019-05-25 09:34:44 +02:00