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

Update well log import and re-apply tests for MacOS #1194

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ErichSuter
Copy link
Contributor

Resolves the rest of #908 (which was mostly addressed by #1188).

When re-applying the tests, an exception was raised as 'rec' can be dict or list.

@ErichSuter ErichSuter self-assigned this Apr 23, 2024
Copy link
Contributor

@mferrera mferrera left a comment

Choose a reason for hiding this comment

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

A tough bug to debug. Before merging please modify your commit messages with the FIX and TST commit prefixes for your commits, respectively

@@ -292,7 +293,7 @@ def import_wlogs(wlogs: dict):
else:
raise ValueError(f"Invalid log type found in input: {typ}")

if rec is None or isinstance(rec, dict):
if rec is None or isinstance(rec, Iterable):
Copy link
Contributor

Choose a reason for hiding this comment

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

Another option could be isinstance(rec, (dict, list)). Iterable will accomplish the same thing with a bit of a broader scope (also including set etc) so I think this is fine.

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