You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tops_from_csv method creates a dataframe from the csv and adds the tops when the tops csv uwi matches the log uwi, source code found here.
Could you try this to debug?
lasfilepath=r'1044931248.las'log=ptr.Log(lasfilepath)
# see the uwi of the log objectlog_uwi=str(self.well['UWI'].value)
print(log_uwi)
tops_path=r'D:\Users\duncan.hay\Documents\python\petrophysics\tops.csv'top_df=pd.read_csv(tops_path, dtype= {'uwi': str,'form': str, 'depth': float})
# see csv of topsprint(top_df.head())
# count matches from tops dataframe uwi to log uwi# if this value is 0 then the uwi from the las file does not match the uwi in the csvprint((top_df.uwi==log_uwi).sum())
when I use...
it returns an empty dictionary meaning i cant use any of the additional functionality. The tops.csv is the exact same format as the example you give.
csv format:
uwi,form,depth
1044931248,fm_1,800
1044931248,fm_2,2000.2
1044931248,fm_3,3000.5
Can you advise?
Thanks
The text was updated successfully, but these errors were encountered: