Open tomjholland opened 1 month ago
This pull request includes several changes to the pyprobe codebase, focusing on adding new functionality for handling preceding points in data frames.
pyprobe
pyprobe/filters.py
preceding_points
Procedure
Experiment
Cycle
Step
_get_preceding_points
tests/analysis/test_cycling.py
Cycling_fixture
tests/test_procedure.py
get_preceding_points
tests/test_rawdata.py
RawData_fixture
This pull request includes several changes to the
pyprobe
codebase, focusing on adding new functionality for handling preceding points in data frames.Handling Preceding Points:
pyprobe/filters.py
: Addedpreceding_points
attribute toProcedure
,Experiment
,Cycle
, andStep
classes. [1] [2] [3] [4] [5]pyprobe/filters.py
: Added_get_preceding_points
static method toProcedure
class to extract rows prior to the first point of each event.pyprobe/filters.py
: Updated methods to includepreceding_points
in their parameters and initialization. [1] [2] [3]Test Updates:
tests/analysis/test_cycling.py
: UpdatedCycling_fixture
to includepreceding_points
attribute.tests/test_procedure.py
: Added tests forget_preceding_points
method and updated existing tests to check forpreceding_points
attribute. [1] [2] [3]tests/test_rawdata.py
: UpdatedRawData_fixture
to includepreceding_points
attribute. [1] [2]