toddheitmann / PetroPy

A petrophysics python package for geoscience python computing of conventional and unconventional formation evaluation. Reads las files and creates a pandas dataframe of the log data. Includes a basic petrophysical workflow and a simple log viewer based on XML templates.
https://toddheitmann.github.io/PetroPy/
MIT License
177 stars 66 forks source link

Wolfcamp Example - Single las file #1

Closed hemanu closed 6 years ago

hemanu commented 6 years ago

I am trying to use your script, following the steps:

  1. Read the file and create a petropy.Log object

but when trying to assign it to the variable log = ptr.Log (las_file_path), the following error message appears:

Traceback (most recent call last): File "C:\Python27\wolfcamp_single.py", line 42, in log = ptr.Log(las_file_path) File "C:\Python27\lib\site-packages\petropy\log.py", line 55, in init self.fluid_properties_parameters_from_csv() File "C:\Python27\lib\site-packages\petropy\log.py", line 333, in fluid_properties_parameters_from_csv param_df.to_dict(orient = 'index') File "C:\Python27\lib\site-packages\pandas\util\decorators.py", line 88, in wrapper return func(*args, **kwargs) File "C:\Python27\lib\site-packages\pandas\core\frame.py", line 712, in to_dict raise ValueError("orient '%s' not understood" % orient) ValueError: orient 'index' not understood

that does not allow me to continue, could you please tell me what step I am not taking into account?

toddheitmann commented 6 years ago

It appears to be an issue with reading csv files using pandas. Please try updating to the most recent version of pandas with the command.

pip install pandas --upgrade

I also will probably be dropping python 2 support as I only use python 3 now.

hemanu commented 6 years ago

Thanks for replying, I'm using python 27, I'm going to update the pandas version

hemanu commented 6 years ago

Ok according to what you suggested, error the error no longer appears, thanks for your support