Commit Graph
100 Commits
Author SHA1 Message Date
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
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
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
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 f3cfa0ab94 Bump version number 2022-05-19 12:50:47 +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
Magne Sjaastad 558d675d44 Merge pull request #8920 remove mac build 2022-05-19 11:47:41 +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
Magne Sjaastad 621100f0cf Bump version 2022-05-06 16:38:41 +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
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
Magne Sjaastad bb6ca0848d #8859 Add drop target for calculation variables 2022-05-04 09:10:32 +02:00
Magne Sjaastad feb1c417c5 #8859 AppFwk : Enable TableView as optional drop target
A TableView can receive drag/drop data. The drop operations finds the PdmObject for a row, and delegates handling of the drop operation to this object.
2022-05-04 09:10:32 +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
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
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
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
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
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
Magne Sjaastad 87b822a80f Curve Style : Add support for curve fitting for non-solid line styles 2022-04-20 14:25:47 +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
Magne Sjaastad 86fda13daa Update vcpkg to tag 2022.03.10 2022-04-07 17:48:09 +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 470d239a07 Toolbar Editor : Make sure uiOrdering use unique objects 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
Magne Sjaastad ca7a5d7b40 Merge remote-tracking branch 'origin/main' into dev 2022-04-05 08:37:19 +02:00
Magne Sjaastad 27fe812309 Set version to 2010.10.3 2022-04-04 16:06:06 +02:00
Magne Sjaastad a8623440ee Merge pull request #8771 from OPM/patch_2021.10.3
Prepare for patch release
2022-04-04 14:47:25 +02:00
Magne Sjaastad ca61e9f9a8 Multi Axis: Make sure widget axis is created during assignment of plot axis 2022-04-04 14:44:29 +02:00
Magne Sjaastad e743a3f860 Set version to 2010.10.3-RC_01 2022-04-04 12:52:28 +02:00
Magne Sjaastad 82eeef707f Fix for patch branch 2022-04-04 12:51:42 +02:00
Magne Sjaastad dde0487024 Multiaxis: add support for Qwt multiaxis plot 2022-04-04 12:10:20 +02:00
Magne Sjaastad aa70590853 Intersection Python API: Fix typo 2022-04-04 12:08:18 +02:00
Magne Sjaastadandmagnesj cf45f78aa3 Intersection : Add Python support for triangle and result values (#8505)
Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2022-04-04 12:06:01 +02:00
Magne Sjaastad 46a8bd58b2 #8761 Multiplot template support 2022-04-01 12:04:46 +00:00
Magne Sjaastad b822996fc3 FIx regression blocking drag and drop of well names into existing plots 2022-03-31 14:43:56 +02:00
Magne Sjaastad 15f17234c8 #8747 MultiPlot : Duplicate and append plots for selected objects 2022-03-31 14:04:33 +02:00
Magne Sjaastad 64d35859a7 Merge pull request #8746 from OPM/patch-fixes
Merge fixes from patch branch
2022-03-28 11:07:47 +02:00
Magne Sjaastad 9c987855f2 Merge remote-tracking branch 'origin/patch_2021.10.3' into dev 2022-03-28 09:06:38 +02:00
Magne Sjaastad 7c4e81f59f Adaption of #8356 Summary Data : Add support for use of summary summary data from Python 2022-03-28 08:46:10 +02:00
Magne Sjaastad a08014e018 Remove obsolete test 2022-03-28 08:46:10 +02:00
Magne Sjaastad 751bf22a6b Python : Make sure an empty list will be received as empty list
See https://github.com/OPM/ResInsight/issues/8508
Python code linting changes detected by black
2022-03-28 08:46:10 +02:00
Magne Sjaastad ef842e7f27 #8416 VFP Plot : Support import of all units (Field, PVT, ..) 2022-03-28 08:46:10 +02:00
Magne Sjaastad 2b45892098 #8513 Use cell face when leaving cell when well path starts inside cell 2022-03-28 08:46:10 +02:00
Magne Sjaastad cbaaabf67e #8558 Use both conditions to disable use of start of simulation
GeoMech cases require this test condition
2022-03-28 08:46:10 +02:00
Magne Sjaastad ee888237f3 #8558 Fix reading of simulation dates for restart case
The date import was wrong for some restart cases.
2022-03-28 08:46:10 +02:00
Magne Sjaastad c48451a532 Summary Import : Support cases with one file per time step (#8493) 2022-03-28 08:46:10 +02:00
Magne Sjaastad cf4d2c9ad2 Janitor : Support import of stand alone ESMRY files
All import of summary data was previously started from a SMSPEC file. As the ESMRY file is completely independent, it is useful to import these files directly.
2022-03-28 08:46:10 +02:00
Magne Sjaastad 2800f1f189 #8354 RFT file open : Inconsistent data might lead to crash
Use try/catch to avoid crash from RFT file reader. Avoid reading data when considering if menu items should be visible.
2022-03-28 08:46:10 +02:00
Magne Sjaastad f028491bb9 #8409 NNC : Make sure user defined legend ranges work 2022-03-28 08:46:10 +02:00
Magne Sjaastad f99bfb04b9 Janitor: Make sure NNC connections are computed before visibility is evaluated 2022-03-28 08:46:10 +02:00
Magne Sjaastad 87780b2b8a #8403 Ensure the NNC connection polygon is created before computing area 2022-03-28 08:46:10 +02:00
Magne Sjaastad e09a839228 Merge pull request #8402 from OPM/8401-flow-vector-result
Use OpenMP for vector calculations

Janitor: Use field of double instead of float to avoid rounding errors. If float is used in field, the current editor is has rounding effects that makes the text representation of 0.1 turn into 0.09999999....
2022-03-28 08:46:10 +02:00
Magne Sjaastad 8fea45c267 #8375 NNC : Create NNC generators when NNC data is available
This approach fixes an NNC visibility issue related to use of m_rimFault->faultGeometry()->connectionIndices() before any was assigned in RigMainGrid::distributeNNCsToFaults()
2022-03-28 08:46:10 +02:00
Magne Sjaastad 869921d300 #8375 Flow Vectors : Avoid recomputing NNCs when accessing flow data
Avoid include of RigNNCData.h in header files.
2022-03-28 08:46:10 +02:00
Magne Sjaastad 4cf0efad61 Janitor : Show warning when generated NNCs count is larger than 5M 2022-03-28 08:46:10 +02:00
Magne Sjaastad 985a2c8f30 Merge pull request #8376 from OPM/fault_visibilityupdates
Faults: Add Visibiliy mode for overlapping area
2022-03-28 08:46:10 +02:00
Magne Sjaastad 8ad2ffa471 #8371 Make sure all NNC faces are created and assigned
Make sure that the first cell in RigConnection is assigned the lowest cell index. Assign the opposite face if the cell indexes are swapped.
In RigCellFaceGeometryTools, test both combinations of (cellA, cellB) and (cellB, cellA)
2022-03-28 08:46:10 +02:00
Magne Sjaastad ff0b09d1c2 #8250 AppFwk : Introduce variadic macros
Use variadic macros to to support optional parameters in initialization macros
2022-03-28 08:46:10 +02:00
Magne Sjaastad 6a7e729886 Python : Split parameters into list of strings
Avoid space in parameters to be sent to ResInsight, always use list of strings
2022-03-28 08:46:10 +02:00
Magne Sjaastad 8b01a7c7f9 Merge pull request #8691 from OPM/platform-offscreen
Add example for headless plot export using Python
Fix childPtrArray issue
2022-03-28 08:46:10 +02:00
Magne Sjaastad 888243db8e Janitor : Add offscreen dynamic library when bundling Qt 2022-03-28 08:46:10 +02:00
Magne Sjaastad 7cd917e0d8 #8307 Input Eclipse Case: Handle trailing line comment 2022-03-28 08:46:10 +02:00
Magne Sjaastad 4366e53733 #8728 Help Menu : Add search issues and create new issue 2022-03-25 12:14:19 +01:00
Magne Sjaastad 8feb0c363b #8307 Input Eclipse Case: Handle trailing line comment 2022-03-24 15:22:07 +01:00
Magne Sjaastad 696c6a15fa #8676 QtChart : Create curve legend widget for multiplot 2022-03-23 14:28:56 +01:00
Magne Sjaastad f45637b7f0 #8715 Fix multi summary title and legend updates 2022-03-23 13:35:47 +01:00
Magne Sjaastad 2aec91e66d Janitor : Add offscreen dynamic library when bundling Qt 2022-03-23 12:42:40 +01:00
Magne Sjaastad 2f2933174b Python : Split parameters into list of strings
Avoid space in parameters to be sent to ResInsight, always use list of strings
2022-03-22 10:18:20 +01:00