WiscAr / pychron

Data acquisition and processing framework for Ar-Ar geochronology and noble gas mass spectrometry
http://pychron.readthedocs.org/en/latest/
Apache License 2.0
0 stars 0 forks source link

exclude omitted bug #50

Open wiscarlab opened 5 years ago

wiscarlab commented 5 years ago

active branch=develop

active analyses=UW147:A3-01A,UW147:A3-01B,UW147:A3-01C,UW147:A3-01D,UW147:A3-01E,UW147:A3-01F,UW147:A3-01G,UW147:A3-01H,UW147:A3-01I,UW147:A3-01J,UW147:A3-01K,UW147:A3-01L,UW147:A3-01M,UW147:A3-01N

description="I unchecked the Omit non-plateau and checked the exclude non-plateau and bug appeared"

Traceback

Traceback (most recent call last):
  File "C:\Users\jross\AppData\Local\conda\conda\envs\pychron3\lib\site-packages\traits\trait_notifiers.py", line 340, in __call__
    self.handler( *args )
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\figure_container.py", line 65, in _model_changed
    self.model_changed(True)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\figure_container.py", line 62, in model_changed
    self.refresh(clear=clear)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\figure_container.py", line 47, in refresh
    comp.add(p.make_graph())
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\panels\figure_panel.py", line 120, in make_graph
    fig.plot(plots, legend)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\plotter\isochron.py", line 208, in plot
    getattr(self, '_plot_{}'.format(po.plot_name))(po, plotobj, pid)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\pipeline\plot\plotter\isochron.py", line 223, in _plot_inverse_isochron
    _, _, reg = self.analysis_group.get_isochron_data(exclude_non_plateau=opt.exclude_non_plateau)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\processing\analyses\analysis_group.py", line 224, in get_isochron_data
    return calculate_isochron(ans, self.isochron_age_error_kind, exclude=exclude)
  File "C:\Users\raregas\.pychron.0\pychron\pychron\processing\argon_calculations.py", line 82, in calculate_isochron
    yint = ufloat(reg.get_intercept(), reg.get_intercept_error())
  File "C:\Users\raregas\.pychron.0\pychron\pychron\core\regression\new_york_regressor.py", line 146, in get_intercept_error
    e = self.get_intercept_variance() ** 0.5
  File "C:\Users\raregas\.pychron.0\pychron\pychron\core\regression\new_york_regressor.py", line 256, in get_intercept_variance
    self.get_slope_variance()
  File "C:\Users\raregas\.pychron.0\pychron\pychron\core\regression\new_york_regressor.py", line 303, in get_slope_variance
    var_b = a / dVdb ** 2
ZeroDivisionError: division by zero