Skip to content

822 pspm pupil pp unit check #836

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

Merged
merged 6 commits into from
Mar 7, 2025
Merged

Conversation

4gwe
Copy link
Contributor

@4gwe 4gwe commented Feb 25, 2025

Fixes #822 .

Changes proposed in this pull request:

  • Added a check for allowed pupil data units.

@4gwe 4gwe requested a review from dominikbach February 26, 2025 13:47
@4gwe 4gwe added the Completed & Waiting for Review Completed and waiting for review label Mar 6, 2025
@4gwe 4gwe added this to the v7.1 milestone Mar 6, 2025
@4gwe 4gwe self-assigned this Mar 6, 2025
@@ -225,6 +245,8 @@
[sts, out_id] = pspm_write_channel(fn, smooth_signal, options.channel_action, o);
outchannel = out_id.channel;

if con_flag == 1 , warning('At least one channel was converted to "mm". See details above.'); end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "see details above" refer to?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a conversion, a warning will be displayed (one per conversion). However, all the information about pupil preprocessing will still be shown afterward, which can be a lot. This serves as a reminder.
Like this:
image

@@ -16,9 +16,9 @@
% │ // Allowable values criteria
% │
% ├─PupilDiameter_Min: Minimum allowable pupil size. Pupil values less than
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest: "Minimum allowable pupil size in mm"
and same in line 20

@dominikbach dominikbach added Approved The pull request has been approved and can be checked and then merged. and removed Completed & Waiting for Review Completed and waiting for review labels Mar 7, 2025
@dominikbach dominikbach merged commit 9a0c10b into develop Mar 7, 2025
1 check passed
@dominikbach dominikbach deleted the 822_pspm_pupil_pp_unit_check branch March 7, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved The pull request has been approved and can be checked and then merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit check for pupil data in pspm_pupil_pp
2 participants