Skip to content

Error appearing when generate output dataset containing all zero intensity values in "Data Operation" window #3762

@Cristian2299

Description

@Cristian2299

Describe the bug
When tring to subtract the same dataset in the Data Operation tool, pressing the compute button will throw an error. The preview is loaded, but it shows an empty plot. The new output dataset is created normally.
The error is:
Traceback (most recent call last): File "sas\qtgui\Calculators\DataOperationUtilityPanel.py", line 147, in onCompute File "sas\qtgui\Calculators\DataOperationUtilityPanel.py", line 430, in updatePlot File "sas\qtgui\Plotting\Plotter.py", line 305, in plot File "matplotlib\axes\_base.py", line 3707, in set_xbound File "matplotlib\axes\_base.py", line 3828, in set_xlim File "matplotlib\axis.py", line 1216, in _set_lim File "matplotlib\axes\_base.py", line 3749, in _validate_converted_limits ValueError: Axis limits cannot be NaN or Inf

To Reproduce
Steps to reproduce the behavior:

  1. Go to Data Operation tool
  2. Select the same dataset for Data1 and Data2
  3. Select the subtraction operator and then click the "Compute" button
  4. See error

Expected behavior
I would probably expect some warning in the log explorer instead of the raw error.

Screenshots

Image

SasView version (please complete the following information):

  • Version: 6.1.1

Operating system (please complete the following information):

  • OS: Windows 10

Installation method (please complete the following information):

  • Installed: Windows installer

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DefectBug or undesirable behaviour

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions