Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted Suffix Added to PupilData Object Names on Save/Load #21

Open
rkd1 opened this issue May 17, 2024 · 0 comments
Open

Unwanted Suffix Added to PupilData Object Names on Save/Load #21

rkd1 opened this issue May 17, 2024 · 0 comments

Comments

@rkd1
Copy link

rkd1 commented May 17, 2024

Problem: After adjusting parameters (subj="Sample1" and params[subj]["distance"]=20) and rerunning preprocessing using the pypillometry package, an unwanted suffix (e.g., "_fi_hu_te_me") is added to the object's name.

`
preprocs = {}

Process each dataset with the specified parameters

for subj, d in datasets.items():
print(d.name)
pars = params[subj]
dp = d.blinks_detect(min_duration=pars["min_duration"], strategies=pars["strategies"],
vel_onset=pars["vel_onset"], vel_offset=pars["vel_offset"],
min_onset_len=pars["min_onset_len"], min_offset_len=pars["min_offset_len"])
.blinks_merge(distance=pars["distance"])
.blinks_interp_mahot(margin=pars["margin"], vel_onset=pars["vel_onset"], vel_offset=pars["vel_offset"])
.lowpass_filter(cutoff=pars["cutoff"])
alid_values = dp.sy[~np.isnan(dp.sy) & ~np.isinf(dp.sy)]
d.plot_segments(overlay=dp, pdffile="/Users/" + subj + "retPup.pdf")
preprocs[subj] = dp
`
Expected Behavior: The name of the PupilData object (Sample1) should remain unchanged after rerunning preprocessing with adjusted parameters.

Actual Behavior: The object's name is changed to include a suffix (e.g., "_fi_hu_te_me") after rerunning preprocessing with adjusted parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant