Skip to content
Snippets Groups Projects
Commit 264b75dc authored by pswain's avatar pswain
Browse files

feature(dataloader.subdf): added group

parent d5607865
No related branches found
No related tags found
No related merge requests found
......@@ -598,6 +598,7 @@ class dataloader:
duration_threshold=None,
tmin=None,
tmax=None,
group=None,
):
"""
Find a sub data frame of dataloader's main data frame.
......@@ -615,8 +616,13 @@ class dataloader:
Only include data for times greater than tmin
tmax: float (optional)
Only include data for times less than tmax
group: str (optional)
Group to specialise to.
"""
sdf = self.df
if group is None:
sdf = self.df
else:
sdf = self.df[self.df.group == group]
selected_ids = []
# drop signals that are all NaN
if dropna and signal:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment