-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I used some snippets of your code to pull tops. When I encountered some well entries with a formation name, but no associated top depth I got a crash as eval('') leads to an error. I suspect, but do not know for sure if your code would do the same. I solved it by changing:
depth = eval(cols[1].split('')[1].split('')[0])
to:
depth = cols[1].split('')[1].split('')[0]
if len(depth)>0: depth = eval(depth)
For me this is fine, but it leads to string character being retained, so maybe a better alternative is:
depth = cols[1].split('')[1].split('')[0]
if len(depth)>0: formations[formation] = eval(depth)
which only write if there is a depth value found.
Many thanks for sharing the code and the webinars you and colleagues are providing.
Metadata
Metadata
Assignees
Labels
No labels