welly icon indicating copy to clipboard operation
welly copied to clipboard

Method to find wells without a specific data object (curve or striplog)

Open EvanBianco opened this issue 8 years ago • 1 comments

Currently, I'm loading all a batch of LAS files into a project p, and then making another project that contains all the wells with a certain curve (and excludes the ones that don't have what I'm looking) for. all_wells_with_bananas = welly.Project(p.find_wells_with_curve('bananas'))

It would be helpful to have a complimentary method to make a new project from all the wells that fail to meet such a criteria.

EvanBianco avatar Jan 18 '17 17:01 EvanBianco

I know what you mean, but it's almost the same amount of code as just using get_curve to test for the presence of the curve:

Project(w for w in p if w.get_curve('porosity', alias) is None)

I mean, I realize it's just the complement of find_wells_with_curve(), which is also very easy to do in this way. Anyway, FWIW, I just made Project.find_wells_with_curve() return another Project. But I'm not convinced it even needs to be in there...?

kwinkunks avatar Jan 18 '17 19:01 kwinkunks