Commit Graph

1376 Commits

Author SHA1 Message Date
Jon Jenssen
9246f06b8f Make sure font size is updated in legend refresh. 2022-08-24 17:45:42 +02:00
Jon Jenssen
1cc40eee38 Fix broken observed csv data import 2022-08-24 13:34:23 +02:00
Magne Sjaastad
d28fcbfe21 #9231 Contour Map: Fix crash when adding formations after a view is created 2022-08-24 01:17:13 -07:00
Magne Sjaastad
c2ab9e6fe0 Regression Test: Do not access RimWellLogPlotCollection directly from desctructors
Regression tests are calling RimProject::reset(), and this function deletes the RimProject object.
2022-08-24 08:58:03 +02:00
Magne Sjaastad
4d244bc848
Depth Axis : Improve visibility logic 2022-08-24 08:55:40 +02:00
Jon Jenssen
8c835b5568 Fix tile windows command, and make sure logger is reconnected to 3d view if it is closed and reopened 2022-08-23 21:31:16 -07:00
Magne Sjaastad
000605bd99 Regression Test: Add timeout to command object processing
When Octave scripts fails, the application ends up in a deadlock. Add timing to be able to process next regression tests.
2022-08-23 05:06:52 -07:00
jonjenssen
f7dc85ddb6 Avoid recalculating streamlines when a 3d calculation is done. 2022-08-23 01:41:24 +02:00
Kristian Bendiksen
8eab80f446 #9209 Refactor RiuMultiPlotPage/RiuSummaryMultiPlotPage plot reinsertion. 2022-08-22 19:38:32 +02:00
Magne Sjaastad
b6973a3644 RFT: Add connection data as segment results 2022-08-22 04:51:46 -07:00
Magne Sjaastad
418c4df7b3 Add Export Property to right-click menu in 3D view 2022-08-22 04:51:46 -07:00
Magne Sjaastad
d994a38959 Show log message when data from WSEGLINK is imported 2022-08-22 04:51:46 -07:00
jonjenssen
116420e82f
Docking updates (#9219)
* Add icons to dock windows. Rearrange ordering in windows menu. Set default dock layout if last stored layout is not valid when resinsight loads
2022-08-22 12:42:29 +02:00
Magne Sjaastad
4cd38d7daf
Simplify access to RimMainPlotCollection
* Add current() to RimMainPlotCollection to avoid include of RimProject
* Remove "segment" prefix
* Reload data when RftCase changes
2022-08-19 14:30:25 +02:00
Magne Sjaastad
506bfbd638
Remove control flag in setCollapsedByDefault
* Remove control flag in setCollapsedByDefault
* Set regions/annotations collapsed by default
2022-08-19 14:18:36 +02:00
Magne Sjaastad
c8d4757a51 Add sample count to grid property statistics 2022-08-19 00:06:55 -07:00
Magne Sjaastad
c6beb3b52d Preferences : Set initial selection when selecting plot templates 2022-08-18 11:59:16 -07:00
jonjenssen
bea90bc841
Make sure errorbars use the same axis as the data curve (#9212)
* Make sure errorbars use the same axis as the data curve
2022-08-18 14:24:28 +02:00
Magne Sjaastad
a1e7b64d92
Simplify RiuPlotMainWindowTools (#9211)
* Janitor: Add and use onObjectAppended()
* Janitor: Simplify API
2022-08-18 12:37:51 +02:00
Jon Jenssen
febbdcf7a0 Make sure errorbars are shown on project reload 2022-08-18 12:34:00 +02:00
Magne Sjaastad
c08d145a28 #9210 New Ensemble Curve Set : Missing update in Plots panel 2022-08-18 09:41:19 +02:00
Magne Sjaastad
e7292a1ff3 Renaming of features 2022-08-17 23:59:01 -07:00
Kristian Bendiksen
9d5a4e7939 #9202 Summary Multi Plot: add option for having the legend inside the plot 2022-08-18 08:50:16 +02:00
Kristian Bendiksen
be236cb644 #9202 Well Log Plot: add option for having the legend inside the plot 2022-08-18 08:50:16 +02:00
Magne Sjaastad
c8f642d83a
Add rename case to summary and grid cases (#9204)
* #9203 Summary Case : Add rename to right-click menu
* Janitor: Move ID and description to private fields
* Eclipse Case: Add rename to right-click menu
* Rename feature
2022-08-18 07:12:23 +02:00
Magne Sjaastad
597a3d1f97
Create features to append plots with RFT curves (#9200)
* Add create plot with RFT curve
* Add RFT segment plot with curve
* Create tracks for all three branch types

* Make sure the zero is displayed when adjusted minimum is changing sign
2022-08-17 10:04:10 +02:00
jonjenssen
1507894066 Selecting a well path in 3d view can now update selected well path in well log plots 2022-08-17 10:03:12 +02:00
jonjenssen
7607c19c7a
Make sure toolbar is refreshed when a new plot is added (#9199) 2022-08-17 08:11:30 +02:00
jonjenssen
535d87c9c4 Tiny refactor 2022-08-16 12:43:53 +02:00
Magne Sjaastad
1f2e9babe6
RFT: Support device and annulus branches (#9168)
* Add unit test used to read data from WSEGLINK
* Add segment branch type
* Add detection of device branches
* Add data source stepping on branch type
* parse wseglink data
* add RFT case as child of RimFileSummaryCase
2022-08-16 12:40:25 +02:00
Magne Sjaastad
e6af123094 #9194 Area Fill : Area filled curves should use zero as base line 2022-08-16 11:58:45 +02:00
jonjenssen
0e45a90e1f
Link selection in 3D view with plots (#9195)
* Allow well selections in 3D view to update well selection in summary plots and well log plots
2022-08-15 20:27:49 +02:00
Magne Sjaastad
016216bdb9
Show well completion annotations in horizontal plots (#9193) 2022-08-15 14:55:17 +00:00
Kristian Bendiksen
c16264497d #9117 Summary/Well Log Plot: fix missing update on legend font size change. 2022-08-15 15:09:27 +02:00
Kristian Bendiksen
ffc58fedc8 Multiplot/WLP: fix missing update of title font size 2022-08-15 15:09:27 +02:00
Kristian Bendiksen
413288df0a Well Log Plot: avoid hard-coding depth/value axis 2022-08-15 15:09:27 +02:00
Kristian Bendiksen
b4bca2276f #9092 WLP: show only axis for first and last track. 2022-08-15 15:09:27 +02:00
Kristian Bendiksen
80961161d2 Well Log Plot: Avoid hard-coded axis (gave incorrect axis labeling). 2022-08-15 15:09:27 +02:00
Kristian Bendiksen
b134419544 #9131 Summary Plot: Show area fill also when line style is 'None'.
Fixes #9131.

Fixed by drawing the line with Qt::NoPen (invisible).
2022-08-15 09:49:18 +02:00
Magne Sjaastad
3d06edc0a9 #9183 Do not use undo/redo for GeoMech result definition 2022-08-11 15:00:24 +02:00
Jon Jenssen
013b735a0d Add default dock window layouts and support hiding dock widgets before running tests. 2022-08-11 12:13:25 +02:00
Kristian Bendiksen
71d18b9e76 #9093 MultiPlot: improve axis alignment by resizing scales 2022-08-10 16:39:34 +02:00
Magne Sjaastad
f8e19e68d2 Avoid setting summaryCaseX, as this will cause issues for RimSummaryPlotNameHelper
In summary plots, we only use summary case for Y-axis
2022-08-10 14:12:28 +02:00
Magne Sjaastad
6977fa59f7 Plot Manager: Activate individual sub plots per data source 2022-08-09 18:36:18 +02:00
Magne Sjaastad
489b4bf66b Make sure curve names and plot titles are updated using Plot Editor 2022-08-09 18:36:18 +02:00
jonjenssen
a3c561b7e5
Get rid of "ghost" windows on startup. (#9171)
* Get rid of "ghost" windows on startup.
Removes hide all docking windows feature for now, to be replaced by a new implementation. Will probably break some tests due to this.
2022-08-09 16:40:50 +02:00
Magne Sjaastad
63b26ebf2d Guard pointer before use 2022-08-09 13:28:18 +02:00
jonjenssen
c3f538c1dd
Summary context menu cleanup and fixes (#9165)
* Make summary plot ctx menu items show up for the plot you right-click on, not the one selected in the project tree.
2022-08-08 13:34:27 +02:00
Kristian Bendiksen
eedebd71a5 #9161 QtCharts: Refactor to make QtCharts optional again. 2022-08-08 13:29:41 +02:00
Kristian Bendiksen
a87e05035d #9102 Thermal Fracture: handle field units. 2022-08-05 13:45:31 +02:00
Magne Sjaastad
f102a8b249
Improve annotations to work in both vertical and horizontal plots (#9154)
* Move enums to RiaPlotDefines.h
* Add support for formation names shading in horizontal plots
* Refactor line property code
* modernize code
2022-08-05 13:14:58 +02:00
Magne Sjaastad
824d5bd458 #9156 Use PdmPointer to avoid dangling pointer in Plot Editor 2022-08-04 14:08:30 +02:00
jonjenssen
82f6dc74c1
Only create and show plot window if we import a summary file. (#9155)
* Only create and show plot window if we import a summary file. If window is already there, no change.
2022-08-04 07:14:12 +02:00
Jon Jenssen
3e0cda4dba Make sure project tree is updated on ensemble curve copy/paste 2022-08-03 14:41:52 +02:00
Kristian Bendiksen
8f1f20ac7e janitor: Improve variable name. 2022-08-03 14:04:31 +02:00
Kristian Bendiksen
2a86b55ad2 Thermal Fracture Import: fix crash when import fails. 2022-08-03 14:04:31 +02:00
Kristian Bendiksen
ed03bd716e Thermal Fracture Import: Add test for loading non-existing file. 2022-08-03 14:04:31 +02:00
Kristian Bendiksen
40cc3f9dc6 #9101 Thermal Fracture Import: detect and refuse inconsistent units.
All values in the file should be in either field or metric units, and mixing is
not allowed.
2022-08-03 14:04:31 +02:00
Jon Jenssen
2e3ac5b02b Fix intersection depth filter limit calculations 2022-08-02 09:07:24 +02:00
Kristian Bendiksen
65600f58b3 Thermal Fracture Import: handle csv with space between name and unit 2022-08-01 13:56:38 +02:00
Magne Sjaastad
76edb49e89 #9126 Improve plot and curve handling for ensembles
Add append plots and append curves to context menu of ensembles
Make sure we create an unique color when adding multiple ensembles
2022-07-08 17:54:37 +02:00
Magne Sjaastad
1d4ab6bf9b #9125 Do not reset user defined axis range when stepping data source 2022-07-08 17:54:37 +02:00
Magne Sjaastad
7a0bfd4917 Use updated version of opm-common as submodule
* Adjustments to build system for opm-common
* Add opm-common as submodule
* Disable use of unity build for opm-common
2022-07-07 22:17:33 +02:00
jonjenssen
d5269abc6e
New dockingsystem (#9116)
* Use Qt Advanced Docking as forked submodule
* Use new docking system in code
2022-07-07 12:03:02 +02:00
Magne Sjaastad
be8c796bb0 Unity build requires global unique variable names 2022-07-07 10:23:21 +02:00
Kristian Bendiksen
2888747a16 Thermal Fracture: fix crash for none-existing results. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
8db0e2619c Thermal Fracture: show mesh options for thermal fractures. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
9f0d2c11b6 Thermal Fracture: load and update on project reload. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
44c469c12c #9099 Thermal Fracture Import: include perimter nodes. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
6f623e9320 More tweaks to fix windows build 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
a908b0c9cf #9098 Thermal Fracture: interpolate missing values inside convex hull of points. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
4b8a02cf46 Thermal Fracture: improve import and display of timestamps 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
e99f713d53 Rotate fracture plane to align with x-y plane 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
625b927cb6 Thermal Fracture: Add visualization of results 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
cb0bc1392d Thermal Fracture: Add action to import Reveal csv 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
ffb0c5a03f Thermal Fracture: add thermal fracture template 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
a89899b7dc Refactor: Introduce MeshFractureTemplate, and convert StimPlanFractureTemplate to it. 2022-07-06 18:18:11 +02:00
Kristian Bendiksen
972013c631 #9039: Thermal Fractures: add file reader 2022-07-06 18:18:11 +02:00
jonjenssen
6105813d28
Allow using scale values less than 1.0 (#9108)
* Change view scale into list of predefined double values in both toolbar and property editor. Add values less than 1.0
2022-07-04 15:48:52 +02:00
Magne Sjaastad
55eefbd53e Added field and object keywords 2022-07-01 15:35:56 +02:00
Magne Sjaastad
d4edc15215
Regression test fixes (#9105)
* Do not show Open Summary Plot in 3D view Property Editor
* Regression Test: Fix missing update of correlation report plot
A fix was introduced in 73d598ee7e to avoid a crash when deleting a multi plot. This had a unintended side effect causing the sub plots in correlation report plot to not be inserted properly.

* Bump release version
2022-07-01 11:36:49 +02:00
jonjenssen
6ad0bcee95 Fix crash if base time step has undefined data 2022-07-01 11:06:12 +02:00
Magne Sjaastad
af77fdad81 Prepare for release
Always create plots using Qwt
Always create plot for command "New Summary Plot"
#9103 : Fix missing updates in multiselect field update operation
Add Open Summary Plot Editor
Trigger missing load of data
Enable data source display for first realization of an ensemble
Always show legend text
Set version to 2022.06.0-RC-02
2022-06-30 18:24:25 +02:00
Magne Sjaastad
3d53c9de1e Do not create curve for empty history vector 2022-06-29 12:42:22 +02:00
jonjenssen
d4ff0a0175
Missing legend (#9095)
* Make sure ensemble curveset legends are shown in multiplot legend.
* Remove information already shown in title from curve legend.
* Fix missing legend when creating curve plot from ensemble curves
* Show actual curve color in legend
2022-06-29 11:49:46 +02:00
Magne Sjaastad
aeab09eceb Minor restructure of summary preferences 2022-06-28 14:06:32 +02:00
Magne Sjaastad
e5cf5f4cf3 Improve history curve color and symbols 2022-06-27 19:25:27 +02:00
Magne Sjaastad
cb1c94630b Guard null pointer use 2022-06-27 19:25:27 +02:00
Magne Sjaastad
a86abab3cb Regression Test: Guard null pointer access 2022-06-27 19:25:27 +02:00
Magne Sjaastad
55966ef6e8 RFT : Fix several update issues 2022-06-27 19:25:27 +02:00
jonjenssen
0cc4f69ba3 Add grid calculator button to 3d view toolbar, add grid calc command to case context menu 2022-06-25 00:44:38 +02:00
Magne Sjaastad
b706192ea3
Performance updates (#9082)
* Avoid creation of curve legend widgets during construction of a multi plot
* Make sure default z-value is correct to avoid expensive Qwt updates
* Avoid duplicate plot updates
* Do not create internal Qwt legend by default
* RFT import: Avoid expensive method throwing exception if no data is found
2022-06-24 16:16:46 +02:00
Magne Sjaastad
5078f4072f
Minor adjustments (#9070)
* Add system commands to test toolbar
* #9069 Summary Plot: Update only Y axis values during source stepping
* Reduce default brightness for ensemble summary curves
* Add a separate flag to control linking of time axis
* Make sure interactive zoom in plot is handled
* Move message dock window to right dock panel
2022-06-21 15:33:00 +02:00
Magne Sjaastad
8aaf98823a
Regression test fixes (#9068)
* Make sure font size is updated correctly
* Hide empty sub titles
* Do not categorize as water cut if no curves are visible
* Propagate settings from single summary plot to summary multi plot
2022-06-21 14:40:54 +02:00
Kristian Bendiksen
b4e3586e2c Janitor: StimPlanFractureTemplate: Remove use of obsolete field.
Might turn on mesh display for some StimPlan fractures in projects older than
v2018.1.0.103. The "show mesh" has been controlled by RimStimPlanColors since 2018.
2022-06-17 19:15:19 +02:00
Kristian Bendiksen
e7ff6f8a7b Janitor: remove empty implementation of updateFilePathsFromProjectPath. 2022-06-17 19:15:19 +02:00
Magne Sjaastad
d854a3d3e7
Merge pull request #9063 from OPM/more-rft-fixes-01
More RFT fixes
2022-06-17 17:24:58 +02:00
Magne Sjaastad
62cf62b9a2
Improve UI for RFT segment curves (#9061)
* Make sure all curve values are set correctly for plot orientation
* Make sure depth zoom is propagated to the Qwt plot
* Expand min/max value range to allow more space around curves
* Use int values to represent RFT segment branch number
2022-06-16 13:55:42 +02:00
Kristian Bendiksen
193bc35f6b #8876 Fracture: add option to use align dip with formation dip 2022-06-16 08:38:24 +02:00
Magne Sjaastad
36e43ae85b Performance: Move bool outside cell loop 2022-06-15 19:22:36 +02:00
Kristian Bendiksen
226ac4f2b6 #8989 Grid statistics: Improve precision of p10/p90. 2022-06-15 19:22:36 +02:00
Magne Sjaastad
34a05ec5f4 Bump version to 2021.10.3-dev.07 2022-06-13 17:30:07 +02:00
magnesj
3477ac7cb7 Fixes by clang-format 2022-06-13 15:13:15 +02:00
Magne Sjaastad
fe0d009b25
Improve visual appearance for ensemble curves (#9016)
* Ensemble Curves : Improve visual appearance
Set line thickness to 1
If ensemble curves are bright, use a high saturation color for the highlight curve
Increase line thickness for highlighted curve
* Use color by summary vector phase for ensemble curves
* Do not create curves for non-existing history vectors
2022-06-13 15:08:15 +02:00
Magne Sjaastad
ccbda23b96
Merge pull request #9048 from OPM/9047-performance-avoid-update-project
- Avoid update of project when creating new objects
- Added icon resource cache
- Avoid use of descendantsIncludingThisOfType()
2022-06-13 13:54:55 +02:00
Kristian Bendiksen
c177e51c45 Grid Property Calculator: Improve UI to allow only one filter. 2022-06-10 13:55:51 +02:00
Kristian Bendiksen
5ea621d36f #9033 Grid Property Calculator: fix incorrect filtering when reloading projects
Fixes #9033.
2022-06-10 13:55:51 +02:00
Kristian Bendiksen
f50b876c99 #8955 Grid Property Calculator : Add filtering support. 2022-06-10 13:55:51 +02:00
Magne Sjaastad
3b5139c24d #9023 Performance : Use cached analyzer
Remove min max from RimSummaryCaseCollection
Guard null pointer access
Improve default behaviour for axis range control
2022-06-10 06:25:41 +02:00
Kristian Bendiksen
5b4434439e #8991 3D grid cross plot: Select correct grid model. 2022-06-09 19:53:09 +02:00
jonjenssen
2fdd5875ea
Update multiplot source stepping - append plot (#9030)
* Make sure we append a new plot for all plots that matches the current source stepper, allows stepping and appending multiple plots at once
2022-06-09 13:23:28 +02:00
Magne Sjaastad
d146ada592 #9037 RFT import: Missing data in RFT file caused crash 2022-06-09 11:44:21 +02:00
Magne Sjaastad
47fb8957c1 #9023 Performance : Temporary fix for axis range aggregation 2022-06-07 23:20:31 +02:00
Magne Sjaastad
d36bf11c62
Several performance fixes (#9026)
* #9023 Performance: Use count instead of for loop

* #9023  Analyzer: Cache vector names for categories

* #9023 Performance : Use cached ensemble analyzer

* #9023 Performance : Add min/max values to ensemble statistics

* #9023 Performance : Improve statistics calculator

* #9023 Performance : Use high performance toInt()

* #9023 Performance : Build summary addresses in parallell
2022-06-07 21:09:36 +02:00
Jon Jenssen
fa1f189709 Simplify "New ... script" enable logic. 2022-06-07 16:22:11 +02:00
jonjenssen
ed392e6300 Keep source step dimension when saving/loading multiplots, including templates 2022-06-03 18:05:26 +02:00
Magne Sjaastad
2472f4697c
Improve summary category detection for opm-common reader (#9018)
* Move code to quantitynameinforprovider
* Use some region-to-region helper function from opm-common
* Add more fallbacks
2022-06-03 13:54:15 +02:00
Magne Sjaastad
95e9ef8bf1 Rename to RiaFieldHandleTools 2022-06-03 08:00:55 +02:00
Magne Sjaastad
2b8bab3bd8 #9011 Disable input controls controlled by automation
Disable fields controlled by automation and append label text with (overridden)
2022-06-03 08:00:55 +02:00
Magne Sjaastad
4146e8bbd1 #9011 Rename axis range aggregation to None 2022-06-03 08:00:55 +02:00
Magne Sjaastad
a28cecd19b #8961 Auto scale factor : Do not use scale factor for some value ranges 2022-06-03 08:00:55 +02:00
Magne Sjaastad
5e53f5687d Improve auto name for curves and plots
- use vector name as plot title if a vector and the associated history vector is present
- use short vector name as fallback for curve name
- use Plot N as fallback name for sub plot
2022-06-03 08:00:55 +02:00
Magne Sjaastad
36dab01cf5 #9009 Data Source Object : Do not allow rename by double-click on item 2022-06-03 08:00:55 +02:00
Jon Jenssen
89773da26e Fix intersection crash by making sure we do nothing when top limit is below bottom limit 2022-06-02 06:54:45 +02:00
jonjenssen
fd7821a10b
Add preferences setting for maximum search depth in script folders. Clean up context menu a bit. (#9012) 2022-06-02 06:53:05 +02:00
jonjenssen
41904df681
New feature: delete unchecked subitems (#9010)
* New feature: delete unchecked subitems
2022-06-02 06:50:14 +02:00
Kristian Bendiksen
cbe731d187 #8994 Plot axis range : Fix incorrect reset of user-defined min max value 2022-06-01 15:10:38 +02:00
Jon Jenssen
cf9f69b620 Fix plot layout after plot visibility filter has been applied 2022-06-01 14:07:27 +02:00
Magne Sjaastad
bf8ca66132 #8983 Improve default dock window layout 2022-06-01 12:25:36 +02:00
Magne Sjaastad
33f0831de5 #8982 Allow mouse wheel zoom for a single sub plot 2022-06-01 12:25:36 +02:00
Magne Sjaastad
c7cf6d19f8 #8995 Drag drop summary vector : Optionally include history vector 2022-06-01 12:25:36 +02:00
Magne Sjaastad
6a7e2f6033 #8993 Default Ensemble Curve : Do not show statistics for history vectors 2022-06-01 12:25:36 +02:00
jonjenssen
9f4d242a5d
Plot Template updates (#9002)
* Ensemble plot templates now have .erpt extension and new icon
* Default plot templates are given a checkmark overlay on the icon
* Context menu has been cleaned up a bit
* Old default template is really just the last used template. Rename it.
* Add max. recursive depth setting in preferences for plot template searches
* Only create plots based on correct template type when importing ensembles or single cases
* Support creating new plot from template explorer
* Update last used template when creating a new plot from a template
2022-06-01 10:45:44 +02:00
Kristian Bendiksen
92afb11a76 #8899 Try exact matches for eclipse summary category search.
Fixes incorrect classification for vectors with 8 characters starting with
'N' (e.g NLINSMAX). They were classified as "network", but lookup table have
them correctly classified as "misc".
2022-05-31 22:16:24 +02:00
Kristian Bendiksen
34a5d3e756 Summary Quantity Name Provider: special handling for MISC vectors 2022-05-31 22:16:24 +02:00
Magne Sjaastad
6a5b9f7300 Use deleteChildren() when required to avoid memory leak 2022-05-31 15:05:07 +02:00
Magne Sjaastad
c74701b687 Rename several child() and children() functions 2022-05-31 15:05:07 +02:00
Magne Sjaastad
c199f960e3 #8949 Plot Update: Improve visual stability when clicking on curves
adjustSize() causes the plot to resize twice which is annoying. Cache the last child count to avoid calls to adjustSize().
2022-05-31 14:20:38 +02:00
Magne Sjaastad
fe1acc93a6 #8938 Sub Plot : Fix visibility of legend
Make sure legends are set visible if any items are present in the legend
2022-05-31 14:20:38 +02:00
Magne Sjaastad
787d3ae379 #8868 Well Log Plot: Appearance update not working 2022-05-31 07:29:59 +02:00
Jon Jenssen
534e74dd31 Make sure drag'n'drop works when explorer window is undocked, too. 2022-05-30 18:47:42 +02:00
jonjenssen
db589c7e32
Show progress bar when appending plots to multiplot (#8976)
* Show progress bar when appending plots to multiplot
* Stop plot manager from going crazy creating plots when filter text is blank
* Speed up plot manager create plot
2022-05-30 11:39:05 +02:00
Magne Sjaastad
17f169e513 RegressionTests: Add missing show() to mainwindow 2022-05-29 13:25:53 +02:00
Magne Sjaastad
f0ce04597d
Merge pull request #8985 from OPM/8926-remove-useoptionsonly
AppFwk : Remove obsolete useOptionsOnly
2022-05-29 13:01:27 +02:00
jonjenssen
2a57adf222 Make sure we create multiple plots if we import multiple summary cases at once. 2022-05-27 12:30:51 +02:00
Kristian Bendiksen
c9aa9285d2 #8900 Summary Data: fix error in h5-data for time scale above 250 years
The usual implementation of chrono::system_clock::to_time_t() uses nanoseconds
which will overflow on data with long time spans. Fixed by lowering resolution
to seconds, and adding custom conversion method.

Fixes #8900.
2022-05-27 12:11:19 +02:00
Magne Sjaastad
5c224241e1 #8892 Allan Diagram: Show formation data for all time steps 2022-05-27 12:10:58 +02:00
Magne Sjaastad
a48ad22d0a Preferences: Avoid calling update on top level RimProject on close 2022-05-27 07:53:51 +02:00
Magne Sjaastad
ab2a7254f8 #8964 Avoid message box for PVT and Rel Perm issues
Log warning message to log window instead of a dialog
Improve text
2022-05-26 20:47:23 +02:00
Magne Sjaastad
a511bfd722 #8952 Only include fields to be modified for sub items on/off
Only one fieldChanged is issued, and make sure that all fields in the selection will change state. If state is not changed for the last field, no notification will happen.
2022-05-26 20:47:23 +02:00
Magne Sjaastad
b17e3813df #8966 Improve performance when changing multiple field values 2022-05-26 20:43:25 +02:00
Magne Sjaastad
3545d16fbb Use set to get unique plots for update 2022-05-26 20:43:25 +02:00
Magne Sjaastad
4a1a2fe2be #8634 Improve performance when deleting multiple wells
Disable general framework delete function, and use special well path delete function
2022-05-26 20:43:25 +02:00
jonjenssen
ff57252812 Add support for dropping folders in summary plots and multi summary plots 2022-05-26 02:29:59 +02:00
Kristian Bendiksen
53af120f39 #2434 Eclipse input property: fix import for keywords without data
Keywords without data does not have a trailing '/'.
2022-05-25 21:32:51 +02:00
Kristian Bendiksen
a47edd4fa6 #8195 Fracture: Show containment also when mesh is off. 2022-05-25 21:25:50 +02:00
Kristian Bendiksen
29fdc29eb0 #8696 Cell filter: fix for IJ Index polygon for non-intersecting filter points
Now the minimum K-layer directly below any of the filter points are used when
the filter points does not intersect with the cells.

Fixes #8696.
2022-05-25 15:07:08 +02:00
jonjenssen
8e3289a432
Default summaryplot improvements (#8950)
* Add summary default plot type selection in preferences
* Create plots as set in preferences when loading summary cases. Allow selecting default plot templates from templates explorer tree
* Do not create plot if data vector setting is empty
2022-05-25 11:01:45 +02:00
Magne Sjaastad
f91fe41f1d
Several minor issues (#8948)
* #8947 Plot Template : Split export dialog into file path and name
* #8946  Update multi plot title when curve is appended by copy/paste
* #8946 Separate axis object name and axis title text
* If multi plot auto name is empty, use plot title "Plot N"
* QwtPlotWidget: Double click activates Zoom All
* More testing on valid main window before use
* Return false if event is not handeled
* Improve fallback plot name
* Tree View Editor: Early exit if selected object is unchanged
Resetting selection causes flickering
* Summary Plot : Select curve object in project tree when clicking on curve
2022-05-24 15:24:38 +02:00
Kristian Bendiksen
1aa41968a5 #8787 Summary Multiplot: Fix inversion of axis with axis aggregation. 2022-05-24 07:26:49 +02:00
Magne Sjaastad
01e670a3d8
Add copy/paste of Summary Multi Plot (#8942)
* Guard use of back() on empty vector
* Add "Show Data Sources" to ensemble realizations
* Update summary plot as summary curve collection is not visible in tree view
* Set selection manager root in RiaApplication
* Always close both main windows if present
* Add copy/paste of summary multi plot
* Add test for RiuMainWindow::instance() before use
* Remove duplicated code
* Multiple Tree Views : Use getTreeViewWithItem() to find correct tree view
* Minor UI adjustments
2022-05-23 14:25:53 +02:00
Jon Jenssen
329e1e8b69 Fix crash in ensemble plot duplicate 2022-05-23 13:32:18 +02:00
Kristian Bendiksen
039ec05ab8 #8794 Multi Axes: Highlight relevant axes 2022-05-23 13:23:55 +02:00
Jon Jenssen
05ce13b533 Fix crash if 3d window is not there when importing summary data 2022-05-23 11:03:32 +02:00
Magne Sjaastad
26f1387bc6 Improve plot manager behavior
Create plots for vectors with no grouping identifier
Do not invalidate GUI on selection changed
Use same name as in project tree
2022-05-22 21:49:34 +02:00
Magne Sjaastad
ccfc0e25bc #7778 Check for valid pointer to main window before use 2022-05-22 11:35:40 +02:00
jonjenssen
886f5e3295 Move duplicate button to the right of the multiplot toolbar 2022-05-20 16:47:44 +02:00
jonjenssen
7c25677d18 Add support for appending curves for summary case and ensemble by stepping 2022-05-20 16:29:26 +02:00
Kristian Bendiksen
954b697e6b #8817 Summary Multiplot: Add filter to control plot visibility 2022-05-20 15:56:43 +02:00
Kristian Bendiksen
c3dfd9ed26 Summary tools: fix crash in when destructing RimStimPlanModel 2022-05-20 14:51:26 +02:00
Kristian Bendiksen
e80343b4db #8877 StimPlan model: Fix formation dip in export of Asymmetric.FRK
Fixes #8877.
2022-05-20 14:51:26 +02:00
Kristian Bendiksen
9678b80feb #7778 MainWindow: fix crash when reopening grid case 2022-05-20 14:51:01 +02:00
Kristian Bendiksen
837a0f208c #8846 StimPlan model plot: Correct perforation interval for longitudinal fracture
Fixes #8846.
2022-05-20 14:07:29 +02:00
Magne Sjaastad
402f738abd Regression Test: Make sure all text is redirected to standard out
Call RiaApplication::initialize() to recreate project and preferences. Do not call virtual method initialize(), as RiaGuiApplication::initialize() creates a new logger causing console text to disappear.
2022-05-19 13:58:01 +02:00
Magne Sjaastad
fa8ad53981 Regression Test : Add memory usage to regression test logging 2022-05-19 12:48:54 +02:00
Magne Sjaastad
89d42fec88
Regression Test: Fix null pointer access (#8922)
* #8921 : Guard null pointer access

* #8921 Fix memory leak

Fix similar memory leak as reported in #8918
2022-05-19 11:51:52 +02:00
Magne Sjaastad
119367783b
Fix memory leak for data source ensemble summary (#8919)
* Do not create summary case group twice

* Fix memory leak of objects contained in childArrayFields
Use deleteAllChildObjects to delete objects instead of clear()
Rename collection function clear() -> deleteAllChildObjects

* Early exit for empty path

* Reduce redundant calls to refreshMetaData
2022-05-19 11:51:22 +02:00
jonjenssen
3b927e1c09
Split summary plot into multiple plots (#8910)
* Support splitting a summary plot with multiple curves into a new multiplot with one plot per curve
* Make sure the correct plot is deleted if using the plot context menu.
2022-05-13 16:36:30 +02:00
jonjenssen
6f26f8e462
Speed up summary case close/delete for ensembles (#8907)
* Speed up summary case close/delete for ensembles
2022-05-12 22:51:15 +02:00
jonjenssen
4f31f5c76e
Add support for deleting plot templates (#8908) 2022-05-12 21:46:35 +02:00
Kristian Bendiksen
b27f59cecb #8274 Python: assign default values
Fixes #8274.
2022-05-11 20:53:01 +02:00
jonjenssen
828e8ec440
Show templates as separate project explorer tab. (#8902)
Add templates as separate project explorer tab.
Add support for renaming and editing templates
2022-05-11 19:46:17 +02:00
Kristian Bendiksen
daf02571c2
Mainwindow datasources (#8883)
* Main Window: add three dock widgets for splitting project tree

* Main Window: move scripts to separate tree widget

* Add eclipse result addresses to data source project tree.

* Grid Calculator: drag-and-drop for calculation variables.

* Grid Calculator: rename to 'Grid Property Calculator'.
2022-05-11 19:17:46 +02:00
jonjenssen
65827f9c1c
Improve summary case import performance (#8897)
* Improve summary case import performance
2022-05-11 10:47:12 +02:00
Magne Sjaastad
7d440a9c2f Performance: Avoid calling allSummaryCases
allSummaryCases() is potentially a heavy CPU call for large ensembles. Always show the curve calculator button.
2022-05-10 10:24:52 +02:00
Magne Sjaastad
f52acd9a64 #8893 Rename quantity name -> vector name 2022-05-10 08:17:41 +02:00
Magne Sjaastad
6f1819ba96 MultiPlot: Reorder top level UI
Set Auto Adjust Appearance to default value true
2022-05-10 08:17:41 +02:00
Magne Sjaastad
df1bb06f09 Support delete of multiple sub plots in one operation 2022-05-10 08:17:41 +02:00
Kristian Bendiksen
85cd07c373 Grid Calculator: Improvements after review. 2022-05-09 15:36:27 +02:00
Kristian Bendiksen
8ea4e933aa Grid Calculator: compute results for all time steps 2022-05-09 15:36:27 +02:00
Kristian Bendiksen
144138904d Avoid index-based iterator. 2022-05-09 15:36:27 +02:00
Kristian Bendiksen
b761bb42af Grid Calculator: Fix view updates when calculation is changed or removed. 2022-05-09 15:36:27 +02:00
Kristian Bendiksen
fdefb214d8 Grid Calculator: Minor tweaks to UI. 2022-05-09 15:36:27 +02:00
Kristian Bendiksen
4304bbbc48 Grid Calculator: refactor summary curve calculator and add grid calculator. 2022-05-09 15:36:27 +02:00
Magne Sjaastad
74ace7ea44
Summary Multi Plot : Improve default behaviour (#8885)
* Summary Multi Plot : Improve default behaviour

- Perform zoom when stepping to next item
- Set defaults for range aggregation and source stepping dimension based on content when creating a multi summary plot

* Plot Axis Appearance : Do not use bold for text configuration

* Improve how scale factor for legend values are computed

* Improve defaults for range aggregation and step dimension

* Reorder Capability : Get UI item before reordering is issued

Get UI item before reordering is issued, as this operation will invalidate the tree model
2022-05-06 12:09:55 +02:00
Magne Sjaastad
74075cc9ab
Merge pull request #8888 from OPM/8887-fix-reorder-capability
Fix reorder capability
2022-05-06 10:52:08 +02:00
magnesj
64c4adf5f0 Fixes by clang-tidy 2022-05-06 06:39:08 +02:00
Magne Sjaastad
cc397efe3e Performance : Simplify use of update schedulers
Extract code to RiaScheduler
Add PlotCollectionScheduler
2022-05-05 14:15:45 +02:00
Magne Sjaastad
8daf25ffb3 Performance : Cache result of some string manipulation functions
These functions get called quite often, and popped up based on profiling.
2022-05-05 14:15:45 +02:00
Magne Sjaastad
e426364fd5 Toggle Action Performance : Send fieldChanged() only once
fieldChanged() can potentially do much work. When toggling objects in the project tree, make sure that fieldChanged is called only once for a toggle operation. This will make sure that we have the best possible performance in all use cases.
2022-05-05 14:15:45 +02:00
jonjenssen
296ddbde42
Merge pull request #8882 from OPM/append_curves
Summary Multiplot: Source Stepping append curves with performance fixes
2022-05-04 13:11:04 +02:00
Magne Sjaastad
bb6ca0848d #8859 Add drop target for calculation variables 2022-05-04 09:10:32 +02:00
Jon Jenssen
4ef1f73a58 Add delete plot comand to subplot context menu 2022-05-03 18:01:01 +02:00
Jon Jenssen
2c1ef661b0 Avoid regenerating viewer pages when just stepping curves in plots 2022-05-03 16:31:30 +02:00
jonjenssen
d3ce7a2096
Add support for all summary data types in data sources tree (#8873)
* Add support for all summary data types in data sources tree
* Use item icons for folders.
2022-05-03 16:29:55 +02:00
jonjenssen
3de8010c2b
Source stepping and toolbar updates (#8866)
* Move layout options to separate toolbar
* Enable stepping on quantities, remove special history curve stepping for now
* Allow stepping ensembles and cases
* Add step next/prev and add new sub plot
2022-05-03 11:30:09 +02:00
Magne Sjaastad
ca9b209e9b #8864 Fix no data issue for Analysis Plot
When RifMultipleSummaryReaders was introduced, no summary data was available to Analysis plots. Fix this by always return true in RifSummaryReaderInterface::hasAddress for a default address object
2022-05-03 09:16:54 +02:00
Magne Sjaastad
46173af8c3
Merge pull request #8865 from OPM/8863-summary-issues 2022-05-03 08:51:26 +02:00
magnesj
19f2ddaaab Fixes by clang-tidy 2022-05-02 07:12:34 +02:00
Magne Sjaastad
64bed1d611
Summary Multi Plot: Minor adjustments (#8856)
Remove obsolete single summary template code
Always use maximized state of the QMdiSubWindow when a plot or view is deleted.
Move time axis to top
Set correct text for unused axis
Avoid assert when layout is requested for non existing legend
2022-04-29 15:31:07 +02:00
Magne Sjaastad
f54399960d
Improve drag and drop features and right click commands (#8854) 2022-04-29 12:28:09 +02:00
Magne Sjaastad
172f891be9
Remove obsolete template commands (#8851)
* Remove obsolete template commands

Use first object in object list when creating plots for templates and a case is selected. (use first well in well list, first group in group list, ...)

* Always create the reference string
2022-04-28 18:28:24 +02:00
Magne Sjaastad
b030e617c6 #8849 Data Sources : Add append curves to plot based on selection 2022-04-28 12:20:15 +02:00
jonjenssen
5d9f7b165c
More summary data types in data source tree (#8840)
* Add support for block data in data sources tree
* Add option to show summary data sub-tree for single realizations inside an ensemble
2022-04-27 01:51:55 +02:00
Magne Sjaastad
774538868a #8844 Summary Multi Plot : Optional auto appearance settings 2022-04-26 15:05:00 +02:00
Magne Sjaastad
73d598ee7e Fix crash during delete of multiplot 2022-04-26 15:05:00 +02:00
Magne Sjaastad
386ba1cbac Use plot axis as key to compute range values from sub plots 2022-04-26 15:05:00 +02:00
Magne Sjaastad
8c76921bed Summary Curve: Do not show legend if empty 2022-04-26 13:01:31 +02:00
Magne Sjaastad
79fdc825ca #8843 Summary Curve : Set nullptr as curve symbol for None 2022-04-26 13:01:31 +02:00
Magne Sjaastad
cb8b18222e #8827 Avoid UI updates during delete of a sub plot 2022-04-26 13:01:31 +02:00
jonjenssen
0f5d949af0
Merge pull request #8838 from OPM/datasource_steppingtoolbar
Add simplified data source stepping control in toolbar
2022-04-26 12:08:22 +02:00
Magne Sjaastad
571011c2bd #8833 Import Of Observed FMU Data: Improve parsing of text files 2022-04-26 07:59:11 +02:00
Magne Sjaastad
853b4a26d5 #8822 Summary Axis: Add tick mark count to y-axis 2022-04-22 23:14:48 +02:00
Magne Sjaastad
b6f7dd931e Add option to export to pdf without asking user 2022-04-22 23:14:48 +02:00
Kristian Bendiksen
73f5c793e8
Merge pull request #8828 from OPM/summary-axis-cleanup
Combine Link axis range with axis range aggregation. Zoom All will now respect the different axis range aggregation method.
2022-04-22 22:16:36 +02:00
Magne Sjaastad
ed6cbce71e #8818 PDF Export : Avoid manipulation of resolution
The exported pdf is dependent on the width of the plot window. Remove code related to change of resolution when exporting to PDF. This makes the PDF export consistent and independent to width of view.
2022-04-22 09:22:11 +02:00
Magne Sjaastad
1840a95810 Preferences: Move colorCurvesByPhase and hide Qt Charts settings 2022-04-22 08:08:06 +02:00
Jon Jenssen
5457c96a63 Remove obsolete open editor command 2022-04-21 17:28:50 +02:00
Magne Sjaastad
c95d79adc2 #8789 Summary Curve : Improve Append to Plot 2022-04-21 12:57:50 +02:00
Magne Sjaastad
caaca138c0
Curve Colors : Add support for color assignment based on summary phase (oil, gas or water) 2022-04-20 14:29:40 +02:00
Kristian Bendiksen
ed87c9028c #8792 Summary Multiple Axes : Remove axis after delete in project tree 2022-04-20 14:26:53 +02:00
Magne Sjaastad
87b822a80f
Curve Style : Add support for curve fitting for non-solid line styles 2022-04-20 14:25:47 +02:00
Kristian Bendiksen
3a461473d0 #8767 Multi Plot: Add support for computing range for a summary curve across all realization, regions or wells. 2022-04-20 14:00:21 +02:00
jonjenssen
db3395da44
Fix Summary Multiplot subplot colspan issue (#8805)
Fix colspan bug for summary multiplots
2022-04-19 12:34:40 +02:00
Magne Sjaastad
c41ab07c1a #8809 MultiPlot Snapshot: Use current page for snapshots 2022-04-19 12:00:15 +02:00
Magne Sjaastad
a6eda226f4 #8813 Regression Test : Fix crash in regression tests 2022-04-19 09:52:34 +02:00
Magne Sjaastad
82367e698f #8560 Fix gray background for default theme 2022-04-13 21:16:51 +02:00
Magne Sjaastad
30aaadb58c #8798 Summary Curve Selection : Always show ensemble realizations cases 2022-04-08 13:22:42 +02:00
Magne Sjaastad
8cdef0d861 #8782 Summary Plot: drag'n'drop data vector issue
Duplicate only matching vectors
More rename for Group
2022-04-08 13:22:29 +02:00
Magne Sjaastad
93614ef272
Merge pull request #8791 from OPM/8790-rename-to-group
Rename summary references to "Group"
2022-04-07 21:06:40 +02:00
Magne Sjaastad
f099a8c89f #8779 Summary Multi Plot : Add flag to control visibility of axis number values
Useful for making plots anonymized
2022-04-07 17:49:07 +02:00
Magne Sjaastad
a0507c85f4 #8779 Summary Multi Plot : Sync time axis properties across sub plots 2022-04-07 17:49:07 +02:00
Magne Sjaastad
6ecb1a8ea0 #8779 Summary Multi Plot : Rearrange property editor
Compute common range for all sub plots when activating sync of sub plot axes
2022-04-07 17:49:07 +02:00
jonjenssen
d156160daf
Summary Multiplot: sync plot selection in tree with view (#8788)
* Make sure the subplot selected in the tree is shown in the multiplot viewer. 
* Clean up multiplot toolbar handling a bit
* Remove old summary plot toolbar.
2022-04-07 16:24:27 +02:00
jonjenssen
3590c52cdc
Deprecate single summary plots and plot collections. (#8777)
* Deprecate single summary plots and plot collections. Replace functionality using summary multi plots. Clean up some code. Fix crash when trying to normalize an empty curve
2022-04-06 17:39:07 +02:00
Magne Sjaastad
9bbc709157 #8773 Source Stepping : Show data source stepping on summary multiplot 2022-04-06 10:05:43 +02:00
Magne Sjaastad
6417daf167 #8773 Source Stepping : Realization cases are missing in some cases 2022-04-06 10:05:43 +02:00
Magne Sjaastad
22673c1073 Summary Multiplot: Add icon and update text
minor adjustments
2022-04-06 10:05:43 +02:00
Kristian Bendiksen
1407c6f96f RimPlotAxisProperties: reset "always required" bool on reload. 2022-04-06 09:03:53 +02:00
Kristian Bendiksen
449b4e4781 RimPlotAxisProperties: only allow plot axis positions left and right. 2022-04-06 09:03:53 +02:00