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

How to extract dlisio.lis.InformationRecord #402

Closed
AchyuthB opened this issue Dec 8, 2021 · 1 comment
Closed

How to extract dlisio.lis.InformationRecord #402

AchyuthB opened this issue Dec 8, 2021 · 1 comment

Comments

@AchyuthB
Copy link

AchyuthB commented Dec 8, 2021

Hi,
I am trying to extract details from InformationRecord. But I am not able to extract the attribute values of 'mnemonic', 'units' etc.
It says

'numpy.void' object has no attribute 'mnemonic'

Below is the code snippet.

    for information_record in logical_file.wellsite_data():
        for record in information_record.table(simple=True):
            print(record.mnemonic)

I know I am doing something terribly wrong. But not able to figure out what.
For DLIS I was able to extract metadata information by doing 'logical_file.parameters'

Thank you
Achyuth

@AchyuthB
Copy link
Author

AchyuthB commented Dec 9, 2021

Hi All,

I am able to extract the values. I was doing it wrong. Thanks All.. :-)

    for information_record in logical_file.wellsite_data():
        for component in information_record.components():
            print(component.mnemonic)
            print(component.units)
            print(component.component)

Regards
Achyuth

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

No branches or pull requests

2 participants