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

Move RAUC calculations to load_dataset and store them as annotations #188

Merged
merged 2 commits into from
Feb 8, 2020

Conversation

jpgill86
Copy link
Owner

@jpgill86 jpgill86 commented Feb 8, 2020

Previously, the calculation of the rectified area under the curve (RAUC) for AnalogSignals was handled by orphan code executed after load_dataset, was duplicated in two files, and required that RAUCs be calculated manually in notebooks or interactive sessions, creating extra work for users.

This change moves that code into load_dataset so that it's handled automatically. The RAUC signals are stored as annotations in the returned Neo Block, attached to the original AnalogSignals that they are derived from.

API change: Because the RAUCs are now stored as annotations in the Neo Block returned by load_dataset, they no longer need to be passed separately in a list to EphyviewerConfigurator and EphyviewerConfiguratorWidget. Consequently, the rauc_sigs parameter has been removed from these class.

This eliminates the ``rauc_sigs`` parameter from ``EphyviewerConfigurator`` and ``EphyviewerConfiguratorWidget``.
Previously, the calculation of RAUCs was handled by orphan code executed after ``load_dataset``, duplicated in two files. This change moves that code into ``load_datasets``.
@jpgill86 jpgill86 added this to the 1.4.0 milestone Feb 8, 2020
@jpgill86 jpgill86 added the enhancement New feature or request label Feb 8, 2020
@coveralls
Copy link

coveralls commented Feb 8, 2020

Coverage Status

Coverage increased (+1.2%) to 55.672% when pulling cec9415 on rauc-as-annotations into 32f5459 on master.

@jpgill86 jpgill86 merged commit 070d209 into master Feb 8, 2020
@jpgill86 jpgill86 deleted the rauc-as-annotations branch February 8, 2020 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants