agilescientific / striplog

Lithology and stratigraphic logs for wells or outcrop.
https://code.agilescientific.com/striplog
Apache License 2.0
204 stars 69 forks source link

Some changes necessary for subsurface #118

Open Leguark opened 3 years ago

Leguark commented 3 years ago

From dict method

Supporting integer as formation name

This is the test that needs all of the mention here: https://github.com/softwareunderground/subsurface/blob/6543c9924dcfd5d67068069f2a6fc1f9e17f5ef5/tests/test_io/test_welly_to_subsurface.py#L420

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.2%) to 76.815% when pulling 2d1b7189babf94ae80ddf75c4436e6a44e0188b3 on Leguark:master into 02ae02ec4ec7c31990faa06e5156924a9b87254f on agile-geoscience:master.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.3%) to 75.11% when pulling fcd782540d0d24f131614b7e6a90a394ab92249e on Leguark:master into 0c68f63d645c5bb7a5cc73b9bdaa197c4fb3cc33 on agile-geoscience:master.

ThirstyGeo commented 3 years ago

@Leguark I'm just getting to know the striplog and Markov Chain object preferences and wondering if you can suggest how you'd clean up a log in the form of a pandas table with well, top, base, log. Based on @kwinkunks notebook it looks like a .GroupBy or .to_json might be the way to go.

ThirstyGeo commented 3 years ago

Something like this, I suppose: df.dropna(how='any').groupby('well')['log'].apply(lambda x: x.to_json(orient='records'))