Skip to content

calculate_and_plot_wave_exact() returns y_values which plotting code can't index into properly #5

Description

@Rodgers-PAC-Lab

I get errors in several different spots all resulting from the same issue: in plotting.py, the calculate_and_plot_wave_exact() function returns orig_y as a pandas series with an index that should be ints, but they're strings instead. Then other plotting code tries to reference something like y_values[47] and instead of y_values['47'] and throws errors.

I've worked around this by forcing it to make y_values a numpy array instead, which is what x_values is. Seems to be working ok now. Obviously if the index number is more than just a position this will break, but as far as I can tell it's fine.

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