-
Notifications
You must be signed in to change notification settings - Fork 112
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
Some error about the opm python library #3608
Comments
Seems like this should be Those tests might be quite helpful for experimenting. |
@soulstealer-star Letian, please keep track of all outdated information/typos you find in the documentation so that can be used to update it. :) |
Yes, I will do that |
Thanks! It works. And I will check the test file |
When I following the OPM PYACTION AND UDQ/ACTIONX DOCUMENTATION and try to write the Python Script as follow:
**import os.path
import sys
from opm.io.parser import Parser
data_file = sys.argv[1]
#print(data_file)
print(f"Loading deck from {data_file}")
parser = Parser()
deck = parser.parse_file( data_file )**
And when I run this file with the command : python importdeck.py NORNE_ATW2013_1A_MSW.DATA in the terminal, it give me the error that:
deck = parser.parse_file( data_file )
AttributeError: 'opm.opmcommon_python.Parser' object has no attribute 'parse_file'
Can you tell me the actual name of parse_file?
The text was updated successfully, but these errors were encountered: