Skip to content

Unable to read data: Warning invalid value encountered in multiply data_curves #180

@ELGarulli

Description

@ELGarulli

Dear Ephyviewer community,

First of all thank you so much for your work, having this simple tool is an amazing help. Today I tried to share the joy of using ephyviewer with a colleague (@dsr33) but we encountered what seems to be a bug.
We tried to visualize data from numpy arrays. The same file works on my computer and displays correctly (jupyter notebook Python 3.8.8)
MicrosoftTeams-image

However, when trying to run the same code, on the same data on my colleague's computer the data appears clipped and generally wrong.
MicrosoftTeams-image (1)

On his computer we tested the code in jupyter notebook, spyder (Python 3.11.5) and Pycharm (Python 12), and obtained the same result. We both have the same ephyviewer version (1.6). The only warning raised is the following:

ephyviewer\Lib\site-packages\ephyviewer\traceviewer.py:332: RuntimeWarning: invalid value encountered in multiply data_curves *= total_gains[visibles, None]

We could reproduce the same error also with the simple example you provided. When we inspected how "data_curves" looks like at the line that throws the warning, we saw that it contained a nan value. If I understand this correctly, this shouldn't be there as the data in the example are randomly generated.

Could I ask you for your support in resolving this? Please let me know if I can provide any additional information.

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