Commit Graph

9027 Commits

Author SHA1 Message Date
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
17821ade6c #4461 Fix return values from RicfCommandResponse 2019-06-03 21:10:21 +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
Gaute Lindkvist
2c30f846f0 Make MDI Window icon different from main application icon 2019-05-31 11:00:32 +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
3d109da5b2 #4425 Python: Add install of gRPC dlls and Python module 2019-05-29 15:12:34 +02:00
Magne Sjaastad
5b7b9993a0 Remove duplicate if statement 2019-05-29 15:12:34 +02:00
Gaute Lindkvist
b2b3581e9d Partial revert of ApplicationCode/CMakeLists.txt to fix build issues 2019-05-29 08:14:02 +02:00
Gaute Lindkvist
6691dca4ca #4448 Clean up ResInsight Qt5-checks 2019-05-28 15:58:49 +02:00
Gaute Lindkvist
f8b8f4d7c8 #4436 Issue refreshToolbar after creating well log extraction curve 2019-05-27 16:13:41 +02:00
Gaute Lindkvist
6864888591 Add CAF_ASSERT to RigCaseCellResultsData::statistics
* Currently the code crashes in a dual porosity case.
* This commit doesn't fix the problem but adds an assert which triggers instead of just crashing
2019-05-27 14:53:25 +02:00
Gaute Lindkvist
debf15bbbe Fix test filter in regression test runner 2019-05-27 14:53:25 +02:00
Gaute Lindkvist
6d969263d5 Hide GPRC warnings on Linux 2019-05-27 14:53:25 +02:00
Gaute Lindkvist
bbe3e7ff04 #4440 Update legend ranges when changing oil column data 2019-05-27 14:53:25 +02:00
Gaute Lindkvist
af83ee310f #4435 Make sure we don't ask user about changes to preferences that haven't been changed 2019-05-27 14:53:25 +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
3345eb5170 Fix unit tests following CommandObject::execute changes 2019-05-24 09:17:57 +02:00
Gaute Lindkvist
c2996bf638 Further build fixes related to RiaLogging 2019-05-24 08:58:04 +02:00
Gaute Lindkvist
e8a54d8aa8 Fix build issues following command feature changes 2019-05-24 08:53:29 +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
Magne Sjaastad
0cb2194bfb #4445 Active cells : Always use PORV if present 2019-05-23 14:14:51 +02:00
Magne Sjaastad
df405dd396 #4437 Make sure formation colors are available and visible for all time step 2019-05-23 13:45:21 +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
c4a4ceef29 Link grpc libraries statically on UNIX/Linux 2019-05-20 15:58:50 +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
Magne Sjaastad
bfe8e7176a #4410 Dock Window State : Restore dock widgets when opening main window 2019-05-15 13:54:05 +02:00
Magne Sjaastad
a52afd7b34 #4410 Dock Window State : Set default visibility of dock widgets 2019-05-15 13:37:23 +02:00
Magne Sjaastad
699870c8c7 #4410 Dock Window State : Use hideAllDockWidgets() in base class 2019-05-15 12:31:27 +02:00
Magne Sjaastad
95124adca6 #4410 Dock Window State : Add features for default dock widget visibility 2019-05-15 11:27:36 +02:00
Magne Sjaastad
6830d79de7 #4410 Dock Window State : Move plot widget names to DockWidgetTools 2019-05-15 10:52:27 +02:00
Magne Sjaastad
f43edf3c7d #4410 Dock Window State : Create static functions instead of singleton 2019-05-15 10:47:30 +02:00
Magne Sjaastad
a68650ebf8 #4410 Dock Window State : Remove obsolete code 2019-05-15 10:36:23 +02:00
Magne Sjaastad
11433241fd #4410 Dock Window State : Remove obsolete code 2019-05-15 10:31:56 +02:00
Magne Sjaastad
bf6b5652b3 #4410 Dock Window State : Give dock widgets unique names 2019-05-15 09:45:44 +02:00
Magne Sjaastad
1a67773ace #4410 Dock Window State : Remove obsolete functions 2019-05-15 07:35:53 +02:00
Gaute Lindkvist
b824f1d75f #4407 Make sure we convert fontInScene from point size to enum value from old registry settings 2019-05-13 15:46:31 +02:00
Magne Sjaastad
a113ca5ff5 #4397 ssihub : Avoid caching of data 2019-05-09 13:43:18 +02:00
Magne Sjaastad
6fbb45be88 #4397 ssihub : Avoid progress info when typing username and password 2019-05-09 13:39:00 +02:00
Magne Sjaastad
ca42f9a4ad Remove unused functions 2019-05-09 13:37:54 +02:00
Magne Sjaastad
96a7f02abe #4266 : flow diagnostics: Update related to API changes 2019-05-09 08:41:02 +02:00
Magne Sjaastad
1ac2429f62 #4266 Updates related to libecl API changes 2019-05-09 08:40:57 +02:00
Magne Sjaastad
abe292024c #4266 Apply formatting 2019-05-09 08:40:50 +02:00
Magne Sjaastad
6ce3371df5 #4396 System : Add SSL information to about dialog 2019-05-08 10:34:18 +02:00
Magne Sjaastad
ac8ea73c36 #4395 Robustness : Guard array out of bounds access 2019-05-07 07:24:13 +02:00
Gaute Lindkvist
29ec970b02 Qt4 fix 2019-05-06 15:03:24 +02:00
Gaute Lindkvist
63ed79e0e8 Update UI icon of RimCellEdgeColors 2019-05-06 13:49:23 +02:00
Gaute Lindkvist
07903a6324 Headless: handle unknown command arguments better 2019-05-06 13:35:05 +02:00
Jacob Støren
f1d4de2090 Remove calls to setUiField that are unneccessary because of changes in AppFwk 2019-05-06 11:58:06 +02:00
Gaute Lindkvist
30769d7f2a Rename caf::PdmUiItem::setUiIcon(QString) to setUiIconFromResourceString 2019-05-06 11:08:59 +02:00
Gaute Lindkvist
274dee70fa Rename RiaApplication::handleEvents -> invokeProcessEvents 2019-05-06 10:40:05 +02:00
Gaute Lindkvist
57b33b0d4c
First implementation of Headless (#4392)
* Revert "#4377 Octave : Use RiaLogging for error messages instead of QErrorMessage "

This reverts commit f758a8edb2.

* Revert "#4380 Preferences : Changing scene font size when geo mech view is open causes crash"

This reverts commit df62a41397.

* Revert "#4379 Documentation : Update command line parser for import of summary files"

This reverts commit d0b5357ed4.

* Unfinished WIP

* Builds but crashes

* Refactored code now builds and runs

* ResInsight can now run the unittests headless

* Can run some command files successfully

* Build on Linux

* Extra headless hack header

* Moved PdmUiItem hack to cpp file

* Fix headless crash in RimWellAllocationPlot

* Handle error gracefully if ExportSnapshots command is executed from console

* Add caf::QIconProvider and remove some hacks

* Also made the greying out of disabled icons work for a couple of cases where it didn't.

* Linux build fix

* #4380 Reimplement fix df62a41397 by @magnesj on top of Headless code changes

* #4379 Reintroduce kode from d0b5357ed4 by @magnesj

* #4377 Restore f758a8edb2 in new Headless code
2019-05-06 10:36:05 +02:00
Magne Sjaastad
66e09e4688 #4387 System : Update references to clang files 2019-05-03 11:08:48 +02:00
Magne Sjaastad
9ae6b79271 #4387 System : Move clang-tidy and clang-format into ApplicationCode
Prepare for format-on-save
2019-05-03 09:15:18 +02:00
Magne Sjaastad
d0b5357ed4 #4379 Documentation : Update command line parser for import of summary files 2019-05-03 07:49:53 +02:00
Magne Sjaastad
1f5d4030b9 #4384 Preferences : Missing default font sizes 2019-04-30 12:36:53 +02:00
Magne Sjaastad
d20ee3b3f1 Add field and object keywords based on 2019.04 2019-04-30 10:45:41 +02:00
Magne Sjaastad
df62a41397 #4380 Preferences : Changing scene font size when geo mech view is open causes crash
Guard access to annotationCollection, as this is nullptr for geo mech views.
2019-04-30 07:40:00 +02:00
Magne Sjaastad
31bcc08546 #4017 Remove unused variables 2019-04-29 19:17:32 +02:00
Magne Sjaastad
987cb92f43 #4017 Automatic parsing of date-time format in CSV Observed Time History Data 2019-04-29 13:35:09 +02:00
Magne Sjaastad
77a12f13c1 #4017 Add function used to determine date format from text string 2019-04-29 12:55:39 +02:00
Magne Sjaastad
80718901d1 #4377 Octave : Remove obsolete developer setting in Preferences 2019-04-29 08:05:03 +02:00
Magne Sjaastad
f758a8edb2 #4377 Octave : Use RiaLogging for error messages instead of QErrorMessage 2019-04-29 08:02:15 +02:00
Gaute Lindkvist
950458455d #4360 Make sure we display cell colors for grids without dynamic variables even if the project has wells in it 2019-04-26 14:23:05 +02:00
Magne Sjaastad
c3dfbf791d Add missing constructor initialization 2019-04-26 13:42:46 +02:00
Gaute Lindkvist
496678cab3 #4373 Provide more error messages when importing input grids 2019-04-26 13:42:35 +02:00
Gaute Lindkvist
f567be6d96 #4371 Store Sector Model settings in Project Dialog Data 2019-04-26 13:42:35 +02:00
Magne Sjaastad
8ce9f63487 #4328 Stimulation wells in 3D-view: Render well head using pipe color
If well head is a real connection, render as normal connection. If dummy connection, render as pipe color
2019-04-26 13:30:29 +02:00
Magne Sjaastad
11e91f5d1c #4375 Robustness : Make sure we handle missing data gracefully 2019-04-26 12:50:36 +02:00
Gaute Lindkvist
b35e7d9bd4 #4369 Only create placeholder for derived MULTXYZ result if all requirements are available 2019-04-26 09:47:07 +02:00
Magne Sjaastad
ba9b84850d #4368 RFT and PLT plots : Disable advanced grid line settings 2019-04-26 09:30:28 +02:00
Gaute Lindkvist
2452bc3a21 #4364 Make sure the correct flow coefficient is exported for ICDs/ICVs in WSEGVALV MSW export 2019-04-26 08:29:04 +02:00
Gaute Lindkvist
ea77618110 Remove unused code in RifReaderEclipseOutput::readWellCells 2019-04-26 08:28:53 +02:00
Magne Sjaastad
b6c9e3b278 #4363 RFT plots: For Measured Depths PL is sometimes used for grid pressures 2019-04-25 16:02:47 +02:00
Magne Sjaastad
bb58bba5b9 #4365 Regression Test : Export of FLUXNUM/MULTNUM from command file does not work
Export of FLUXNUM/MULTNUM was using the same code as export sector model, but these two concepts are different. Restore original behavior.
2019-04-25 15:29:46 +02:00
Magne Sjaastad
6c8aa6beea #4361 Export : Use well name instead of wellNameForExport() to create file name 2019-04-25 12:30:28 +02:00
Magne Sjaastad
02de18f708 Rename to wellNameForExport 2019-04-25 11:42:16 +02:00
Magne Sjaastad
c2fb16a4d3 #4352 Fractures : Make sure appropriate value is always returned 2019-04-25 08:20:48 +02:00
Magne Sjaastad
3cdf19b19d #4357 Grid Case Group Statistics: Crash when creating contour map 2019-04-25 07:42:38 +02:00
Magne Sjaastad
319050b992 #4352 Fractures : Delegate isEnabled to leaf classes 2019-04-25 07:25:52 +02:00
Magne Sjaastad
1adbc499d6 #4354 Export Completion Data: Auto-select "MSW" in GUI when Valves are exported 2019-04-24 13:31:11 +02:00
Magne Sjaastad
521e170178 #4352 Hide Fracture CONDUCTIVTY legend if no visible fractures 2019-04-24 13:07:54 +02:00
Magne Sjaastad
efc7cca5c7 #4355 Dual Porosity : Guard data access for fracture data values 2019-04-24 12:39:47 +02:00
Magne Sjaastad
60153b20ec
Merge pull request #4350 from OPM/cpp-check-cleanup
Cpp check cleanup
2019-04-24 09:09:18 +02:00
Magne Sjaastad
6dd3b36f86 Regression Test : Allow execution of tests starting at filter folder 2019-04-24 08:06:13 +02:00
Magne Sjaastad
5123d5d0c5 #4351 Regression test : Guard null pointer access 2019-04-24 07:46:51 +02:00
Gaute Lindkvist
195fc85a5a Improve Simulation Well Color UI 2019-04-23 08:38:49 +02:00
Gaute Lindkvist
2e13e53b3c Make the preference dialog slightly narrower 2019-04-23 08:38:49 +02:00
Gaute Lindkvist
c8184065e3 #4326 Invert Grid Cross Plot Y-axis when displaying DEPTH 2019-04-23 08:35:18 +02:00
Gaute Lindkvist
86e20df7c6 #4319 Store export sector model settings 2019-04-23 08:28:37 +02:00
Gaute Lindkvist
0861a79dfa #4320 Add create valve to 3d context menu when clicking on perforation 2019-04-23 08:25:39 +02:00
Gaute Lindkvist
1caed321b0 #4323 Avoid time step legend showing up unexpectedly in grid cross plots 2019-04-23 08:23:38 +02:00
Magne Sjaastad
3d3e6064b1 #4348 System , cppcheck : Remove unused functions 2019-04-21 09:36:25 +02:00
Magne Sjaastad
843a791218 #4348 System , cppcheck : Remove unused functions 2019-04-21 09:28:23 +02:00
Magne Sjaastad
8d4142187e #4348 System , cppcheck : Remove unused functions 2019-04-21 09:11:20 +02:00
Magne Sjaastad
d152147fd4 #4348 System , cppcheck : Remove unused functions 2019-04-21 08:58:21 +02:00
Magne Sjaastad
b786c2c5f3 #4348 System , cppcheck : Remove unused functions 2019-04-21 07:53:52 +02:00
Magne Sjaastad
44d80672a0 clang : Compare instead of invalid assignment 2019-04-20 19:47:57 +02:00
Magne Sjaastad
159f3fa0fc clang : Identify gridfile correctly 2019-04-20 19:47:33 +02:00
Magne Sjaastad
8cefcbb562 #4348 System , cppcheck : Remove unused variables 2019-04-20 15:11:21 +02:00
Magne Sjaastad
ca72e6ab89 #4348 System , cppcheck : Remove unused variables 2019-04-20 14:34:23 +02:00
Magne Sjaastad
e2d21bb4f9 #4348 System , cppcheck : Remove unused local variables 2019-04-20 14:24:17 +02:00
Magne Sjaastad
3c2f4eb692 #4348 System , cppcheck : Remove unused variables 2019-04-20 14:14:29 +02:00
Magne Sjaastad
4ec289a7fa #4348 System , cppcheck : Remove unused variables 2019-04-20 14:01:47 +02:00
Magne Sjaastad
64fc5d71ef #4348 System , cppcheck : Use size_t when counting parameter instances 2019-04-20 13:53:51 +02:00
Magne Sjaastad
e4672aefa9 #4348 System , cppcheck : Remove duplicate test 2019-04-20 13:46:12 +02:00
Magne Sjaastad
25d5120190 #4153 Process Monitor : Avoid setting special font in process monitor 2019-04-20 13:13:27 +02:00
Gaute Lindkvist
4439f7609b #4317 Add default ellipse fracture template 2019-04-16 13:30:03 +02:00
Gaute Lindkvist
a8bcfefca2 #4309 Offset text annotations label position slightly to make labels less likely to be obscured by grid 2019-04-16 13:02:31 +02:00
Gaute Lindkvist
e0bbda85d9 #4312 Move handleMdiWindowClosed call from widget destructors to MdiSubWindow closeEvent
* This way the mdi window still exists at the time of removal and we can handle the removal orderly
2019-04-16 12:14:54 +02:00
Gaute Lindkvist
e41f8ec149 #4312 Force new current sub window in MDI area to be maximized if closing a sub-window that was maximized 2019-04-15 15:33:31 +02:00
Gaute Lindkvist
edf46496b7 #4341 Make docked plots follow font size preferences (but subtract 1 in point size)
* The docked plots have much less space available than most plots
2019-04-15 15:08:15 +02:00
Gaute Lindkvist
93f76d9739 Fix labels to match Documentation 2019-04-15 12:44:14 +02:00
Gaute Lindkvist
a98b1d3494 #4339 Show actual parameter names instead of X and Y in Grid Cross Plot Show Data 2019-04-15 11:55:40 +02:00
Gaute Lindkvist
983fed11a3 #4323 Make sure time step legend doesn't show up unexpectedly
* Don't make it the default. The legend is handled well when changing to time step
2019-04-15 11:12:16 +02:00
Gaute Lindkvist
8846798ccf #4338 Add grouping result to Grid Cross Plot Data set property editor 2019-04-15 11:06:27 +02:00
Gaute Lindkvist
48c6139cb2 #4337 Group grid cross plots created from view by formations 2019-04-15 10:45:46 +02:00
Gaute Lindkvist
f9e3db6aa6 #4336 Fix deletion of grid cross plot legends 2019-04-15 10:38:29 +02:00
Gaute Lindkvist
6f7a75f5c2 Add a margin of 4 pixels around every plot to avoid text going all the way to the edge 2019-04-15 09:58:08 +02:00
Gaute Lindkvist
c2032fd948 Set grouping by formations and category colors as default for Grid Cross Plots if formations are available 2019-04-15 09:36:13 +02:00
Gaute Lindkvist
3a91412d6c #4336 make sure data colors are updated in Grid Cross plots when changing legend colors 2019-04-15 09:32:35 +02:00
Gaute Lindkvist
89a16103c9 Make sure picking of text and reach circle annotations isn't enabled after loading project 2019-04-12 14:47:36 +02:00
Gaute Lindkvist
9aa7ac2591 Make sure auto zoom isn't disabled at the end of zoomAll() for grid cross plot 2019-04-12 14:47:36 +02:00
Gaute Lindkvist
f4d341feac #4313 Disable copy of grid cross plot curves 2019-04-12 14:47:35 +02:00
Gaute Lindkvist
9834a421c8 Fix problem in font size application to annotations 2019-04-12 14:47:21 +02:00
Gaute Lindkvist
9d06b59357 #4255 Read default plot font sizes from preferences and apply 2019-04-12 14:47:21 +02:00
Gaute Lindkvist
798e3ff19e #4256 Update fonts in Project and views when changing preferences 2019-04-12 14:47:21 +02:00