Skip to content

MVC Compute module : trial plotting doesn't plot raw data if plotting again after selecting processed or both #28

@hugodumoulin

Description

@hugodumoulin

When asked which data to plot after a trial or after sating yes to plotting again, if you do not use the "plot raw only" option, it will become impossible to "plot raw only" for this trial and the next ones unless you reload the module.

image

This is a simple fix, the "plot raw only" option was missed in /processing/compute_mvc.py line 357 if statement :

if plot != "c":
    if plot == "p":
        data = processed_data
        legend = ["Processed"]
    elif plot == "b":
        data = [raw_data, processed_data]
        legend = ["Raw data", "Processed"]

just add

elif plot == "pr":
    data = raw_data
    legend = ["Raw data"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions