Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roxar api add new features #787

Merged
merged 4 commits into from
Jun 22, 2022

Conversation

jcrivenaes
Copy link
Collaborator

This PR has several commits targeted to Roxar API:

  • General improvements/refactor in RMS integration tests
  • Add support for "General 2D" in RMS GUI tree (Roxar API >= 1.6) for both RegularSurface() and _XYZ() based classes
  • Add support for Trend Surfaces in RMS GUI
  • Add support for writing subzones/subgrids for Roxar API >= 1.6
  • From Roxar API 1.6, setting and getting point attributes via the API is possible and now implemented. Earlier a workaround using tmp files and save() + load() have been implemented, which should still work for Roxar API < 1.6. Polygons support is postponed.

@ertomatic
Copy link
Collaborator

Can one of the admins verify this patch?

@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2022

Codecov Report

Merging #787 (e6e6d25) into master (6500ce4) will decrease coverage by 0.06%.
The diff coverage is 73.68%.

@@            Coverage Diff             @@
##           master     #787      +/-   ##
==========================================
- Coverage   80.83%   80.76%   -0.07%     
==========================================
  Files          83       83              
  Lines       12678    12671       -7     
  Branches     2119     2120       +1     
==========================================
- Hits        10248    10234      -14     
- Misses       1756     1763       +7     
  Partials      674      674              
Impacted Files Coverage Δ
src/xtgeo/xyz/points.py 84.97% <ø> (-0.31%) ⬇️
src/xtgeo/xyz/polygons.py 91.07% <ø> (ø)
src/xtgeo/surface/_regsurf_import.py 75.50% <37.50%> (-1.03%) ⬇️
src/xtgeo/surface/regular_surface.py 80.31% <100.00%> (-0.18%) ⬇️
src/xtgeo/xyz/_xyz_io.py 79.77% <100.00%> (+0.11%) ⬆️
src/xtgeo/grid3d/_ecl_grid.py 91.05% <0.00%> (-1.06%) ⬇️
src/xtgeo/surface/_regsurf_export.py 83.17% <0.00%> (+0.46%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

tests/test_roxarapi/test_roxarapi_reek.py Show resolved Hide resolved
src/xtgeo/xyz/_xyz_roxapi.py Outdated Show resolved Hide resolved
tests/test_roxarapi/test_roxarapi_reek.py Outdated Show resolved Hide resolved
tests/test_xyz/test_points.py Show resolved Hide resolved
Setting float precision in output files is actually not a good idea, as it
restricts precision in  particular for Z column that may contain other
values than depth (e.g. porosity). Also columns shall be numerical if
possible.
Support Roxar API support for "RMS General 2D data" for points,
polygons and regular surfaces when RoxAPI version >= 1.6 (RMS13+). For
surfaces, also Trends are supported.

Also,  from Roxar API version 1.6, setting and getting points
(and polygons)  attributes are supported. In earlier versions,
xtgeo use a file workaround which is much slower. Polygon
attributes are not implemented in this PR.
@jcrivenaes jcrivenaes merged commit 547d39d into equinor:master Jun 22, 2022
@jcrivenaes jcrivenaes deleted the roxar-api-add-new-features branch June 22, 2022 06:27
@jcrivenaes jcrivenaes mentioned this pull request Jun 22, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants