Skip to content

Commit

Permalink
Added in from method to generalize profile interpretation
Browse files Browse the repository at this point in the history
  • Loading branch information
micahjohnson150 committed Oct 30, 2024
1 parent 4c9f584 commit 302bc86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion study_lyte/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,21 @@ def __init__(self, filename, surface_detection_offset=4.5, calibration=None,
self._error = None
self._ground = None


def assign_event_depths(self):
"""" Enable depth assignment post depth realization """
self.events
for event in [self._start, self._stop, self._surface.nir, self._surface.force]:
event.depth = self.depth.iloc[event.index]

@classmethod
def from_metadata(cls, filename, **kwargs):
profile = cls(filename)
if 'APP VERSION' in profile.metadata.keys():
return ProcessedProfileV6(filename)
else:
return LyteProfileV6(filename)


@property
def raw(self):
"""
Expand Down

0 comments on commit 302bc86

Please sign in to comment.