Skip to content

Enh ch type scale display#263

Merged
larsoner merged 3 commits intomne-tools:mainfrom
nmarkowitz:ENH-ch-type-scale-display
Jul 2, 2024
Merged

Enh ch type scale display#263
larsoner merged 3 commits intomne-tools:mainfrom
nmarkowitz:ENH-ch-type-scale-display

Conversation

@nmarkowitz
Copy link
Copy Markdown
Contributor

@nmarkowitz nmarkowitz commented Jun 29, 2024

Thanks for contributing a pull request! Please make sure you have read the
contribution guidelines
before submitting.

Please be aware that we are a loose team of volunteers so patience is
necessary. Assistance handling other issues is very welcome. We value all user
contributions, no matter how minor they are. If we are slow to review, either
the pull request needs some benchmarking, tinkering, convincing, etc. or more
likely the reviewers are simply busy. In either case, we ask for your
understanding during the review process.

Again, thanks for contributing!

Reference issue

#230 , mne-tools/mne-python#10888 , #212

What does this implement/fix?

Adds to the Settings dialogue to display channel scalings and channel units
Screenshot 2024-06-29 at 11 49 42 AM

Currently the spinboxes can't be edited and will not be able to until a following PR. Let me know if they style of the groupbox containing the channel scalings should change (such as putting units after the spinbox)

Additional information

This is the first of 4 or 5 PRs to allow display and scaling of channel types based on sensor units and monitor resolution and size

@nmarkowitz nmarkowitz marked this pull request as ready for review June 29, 2024 17:27
@larsoner
Copy link
Copy Markdown
Member

larsoner commented Jul 2, 2024

Looks good, in it goes and you can then work on interaction!

@larsoner larsoner merged commit 018585d into mne-tools:main Jul 2, 2024
ch_spinbox.setDecimals(3)
ch_spinbox.setValue(self.mne.scalings[ch] * self.mne.unit_scalings[ch])
ch_spinbox.setDisabled(True)
# ch_spinbox.setReadOnly(True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you remove this comment if the command is unused in one of the follow-up PR?

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

Successfully merging this pull request may close these issues.

3 participants