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

BUG: fix 2 small bugs wrt to XTGeo 3.9.2 and Roxar/RMS API #217

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

jcrivenaes
Copy link
Collaborator

Solves #216 and #215

@jcrivenaes jcrivenaes requested a review from tnatt August 29, 2024 10:51
@jcrivenaes jcrivenaes force-pushed the bugfix-df-drop-issue branch 2 times, most recently from 0f5f5ea to ec72b17 Compare August 29, 2024 12:00
Comment on lines 8 to 23
try:
import _roxar # type: ignore
from _roxar import Project # type:ignore
except ModuleNotFoundError:
try:
import _rmsapi as _roxar # type: ignore
from _rmsapi import Project # type:ignore
except ModuleNotFoundError:

class MockRoxar:
@property
def Project(self):
pass
class MockRoxar:
@property
def Project(self):
pass

_roxar = MockRoxar()
_roxar = MockRoxar()
Project = _roxar.Project
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that all of this is related to type hinting the project argument in the function. Could we just remove it and put Any as type instead as we do in the qcreset.py 🙂 ? for simplicity?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of that, but left it as it was your code initially; :-) I can change it to Any

@jcrivenaes jcrivenaes force-pushed the bugfix-df-drop-issue branch from ec72b17 to e9f5685 Compare August 29, 2024 12:16
Copy link
Collaborator

@tnatt tnatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙂

@jcrivenaes jcrivenaes merged commit 35af710 into equinor:main Aug 29, 2024
16 checks passed
@jcrivenaes jcrivenaes deleted the bugfix-df-drop-issue branch August 29, 2024 12:30
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.

2 participants