NMGRL / 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
26 stars 26 forks source link

Pipeline IC factor error #698

Closed wcmcintosh closed 9 years ago

wcmcintosh commented 9 years ago

Doing IC factor on NM-261 monitiors appropriate errors are in repository, I believe This error occurs as airs first start to load "loading analysis a-01-J-546. 0/16"

Traceback (most recent call last):
  File "/Users/mcintosh/anaconda/lib/python2.7/site-packages/pyface/ui/qt4/action/action_item.py", line 343, in _qt4_on_triggered
    self.controller.perform(action, action_event)
  File "/Users/mcintosh/anaconda/lib/python2.7/site-packages/pyface/tasks/action/task_action_controller.py", line 31, in perform
    return action.perform(event)
  File "/Users/mcintosh/anaconda/lib/python2.7/site-packages/pyface/tasks/action/listening_action.py", line 58, in perform
    method()
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/tasks/task.py", line 248, in run
    self._run_pipeline()
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/tasks/task.py", line 369, in _run_pipeline
    self._run('run pipeline', 'run_pipeline', close_all=True)
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/tasks/task.py", line 348, in _run
    if not getattr(self.engine, func)():
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/engine.py", line 434, in run_pipeline
    node.run(state)
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/nodes/find.py", line 176, in run
    if self._run_group(state, gid, list(ans)):
  File "/Users/mcintosh/Programming/git/pychron/pychron/pipeline/nodes/find.py", line 183, in _run_group
    refs = self.dvc.find_references(times, atype, hours=self.threshold)
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/dvc.py", line 395, in find_references
    records = self.make_analyses(records)
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/dvc.py", line 423, in make_analyses
    ret = progress_loader(records, wrapper, threshold=1)
  File "/Users/mcintosh/Programming/git/pychron/pychron/core/progress.py", line 94, in progress_loader
    items = list(gen())
  File "/Users/mcintosh/Programming/git/pychron/pychron/core/progress.py", line 76, in gen
    r = func(x, prog, i, n)
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/dvc.py", line 420, in <lambda>
    calculate_f_only=calculate_f_only, *args)
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/dvc.py", line 678, in _make_record
    a.set_production(pname, prod)
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/dvc_analysis.py", line 289, in set_production
    self.production_ratios = r.to_dict(('Ca_K', 'Cl_K'))
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/meta_repo.py", line 204, in to_dict
    return {t: ufloat(getattr(self, t), getattr(self, '{}_err'.format(t))) for t in keys}
  File "/Users/mcintosh/Programming/git/pychron/pychron/dvc/meta_repo.py", line 204, in <dictcomp>
    return {t: ufloat(getattr(self, t), getattr(self, '{}_err'.format(t))) for t in keys}
AttributeError: 'Production' object has no attribute 'Ca_K'
jirhiker commented 9 years ago

Duplicate #694

Problem was with the NoIrradiation irradiation. All blanks and airs have there irradiation set to NoIrradiation. meta/NoIrradiation did not have the correct directory structure.

meta repository fixed and ICFactor pipeline working correctly. It was clear from log file what was happening.

Latest revision also skips loading irradiation info for blanks and airs, i.e analyses which have irradiation="NoIrradiation"