Skip to content

Error when Ymodulus chart activated, but 0 events in #223

@jarogumulec

Description

@jarogumulec

In datasets with extreme deformation data (under ridiculously high flow) , when HE-2D-FEM-22 is activated, 0 Ymoduli is calculated for cells (in milder flow cases, but still far above suggested, the event numbers between deformation and Ymodulus charts do not match). Then, when a chart with 0 events (0 Ymoduli calculated) is activated, an error popups.

When such dataset is saved, it cannot be reopened as this popup message blocks dataset opening.

In particular problem for HE-2D-FEM-22 model, 2019 calculates more data even from extreme deformations

Unhandled exception in DCscope version 2.23.0:
Traceback (most recent call last):
  File "dcscope\gui\pipeline_plot.py", line 91, in update_content
    self.update_content_plot(plot_state, slot_states, dslist)
  File "dcscope\gui\pipeline_plot.py", line 211, in update_content_plot
    pp.redraw([ds], [sl], plot_state_scatter, hash_flag)
  File "dcscope\gui\pipeline_plot.py", line 349, in redraw
    sct = add_scatter(plot_item=self,
  File "dcscope\gui\pipeline_plot.py", line 592, in add_scatter
    x, y, kde, idx = plot_cache.get_scatter_data(
  File "dcscope\plot_cache.py", line 63, in get_scatter_data
    kde = rtdc_ds.get_kde_scatter(
  File "dclab\rtdc_dataset\core.py", line 677, in get_kde_scatter
  File "dclab\kde\base.py", line 373, in get_scatter
  File "dclab\kde\methods.py", line 116, in new_kde_method
  File "dclab\cached.py", line 67, in __call__
  File "dclab\kde\methods.py", line 209, in kde_histogram
  File "dclab\kde\methods.py", line 25, in bin_num_doane
  File "dclab\kde\methods.py", line 55, in bin_width_doane
  File "numpy\core\_methods.py", line 41, in _amax
ValueError: zero-size array to reduction operation maximum which has no identity

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions