Skip to content
Merged
12 changes: 6 additions & 6 deletions src/RespFlow/access_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def make_paths(root: str | None = None, raw: str | None = None) -> dict[str, str
path_names = {
'raw':raw,
'hard_fault':os.path.join(root, '2_hard_fault'),
'detrend':os.path.join(root, '3_detrend'),
'micro_interp':os.path.join(root, '4_micro_interp'),
'micro_interp':os.path.join(root, '3_micro_interp'),
'detrend':os.path.join(root, '4_detrend'),
'bandpass':os.path.join(root, '5_bandpass'),
'fwr':os.path.join(root, '6_fwr'),
'screened':os.path.join(root, '7_screened'),
'filled':os.path.join(root, '8_filled'),
'smooth':os.path.join(root, '9_smoothed'),
'anomaly':os.path.join(root, '6_anomaly'),
'post_anomaly_interp':os.path.join(root, '7_post_anomaly_interp'),
'impute_anomaly':os.path.join(root, '8_impute_anomaly'),
'smooth':os.path.join(root, '9_smooth'),
'feature':os.path.join(root, '10_feature')
}

Expand Down
5 changes: 3 additions & 2 deletions src/RespFlow/plot_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def plot_dashboard(mapped_files : dict[str, str], max_points=10000) -> None:


# Define all processing stages in order
stages = ['raw', 'hard_fault', 'detrend', 'micro_interp', 'bandpass', 'fwr', 'screened', 'filled', 'smooth', 'feature']
stages = ['raw', 'hard_fault', 'micro_interp', 'detrend', 'bandpass', 'anomaly', 'post_anomaly_interp', 'impute_anomaly', 'smooth', 'feature']

app = Dash()

Expand Down Expand Up @@ -116,9 +116,10 @@ def update_graph(selected_file, selected_stages):
color = viridis_colors[idx % len(viridis_colors)]

# Data trace - blank gaps where NaN
# Looks for column in file with label 'Respiration'
fig.add_trace(go.Scattergl(
x=df[df.columns[0]],
y=df[df.columns[1]],
y=df['Respiration'],
mode='lines',
name=stage,
line=dict(color=color, width=1.5),
Expand Down
Loading
Loading