tjlane / pypad

Intuitive, high-level interface to the CSPAD
Other
2 stars 1 forks source link

cspad.CSPad.default() has no attribute 'beam_location' #4

Closed sellberg closed 11 years ago

sellberg commented 11 years ago

[pypad:609 11:24:57] genfilter cxi64813-r0135-Au.h5

  ---  INTERACTIVE PARAMETER OPTIMIZATION ENVIRONMENT  ---    

Welcome to autogeom's interactive image pre-processing environment. Adjust the sliders to optimize your image -- the goal is to get one or more sharp powder rings on the image to show up above the noise.

Instructions: -- Right Click: (Left Panel) Sets the guess of the center of the image. (Right Panel) Set a 'peak limit', the algorithm only optimizes peaks between these limits. You can set many such regions. -- Threshold: Sets a binary intensity threshold. -- Median: A median filter. You can thinks of this as a voting scheme, where a pixel gets set to be the same as a consensus of those around it. This parameter sets the size of that consensus window. -- Minimum: A minimum filter. If any pixel in this window size is zero, all pixels in the window become zero.

Once you are done, the final parameters you have in your window will be written to disk in a file that can be interpreted by the 'optgeom' script, which will give you a final, optimized geometry.

PS. The rendering can be a bit slow... sorry. Please be a bit patient!

Loading: cxi64813-r0135-Au.h5 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/Current/bin/genfilter", line 5, in pkg_resources.run_script('pypad==0.0.1', 'genfilter') File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pkg_resources.py", line 467, in run_script self.require(requires)[0].run_script(script_name, ns) File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pkg_resources.py", line 1200, in run_script execfile(script_filename, namespace, namespace) File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pypad-0.0.1-py2.6.egg/EGG-INFO/scripts/genfilter", line 294, in main() File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pypad-0.0.1-py2.6.egg/EGG-INFO/scripts/genfilter", line 284, in main image, output_fn = parse_n_load() File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pypad-0.0.1-py2.6.egg/EGG-INFO/scripts/genfilter", line 44, in parse_n_load image = geom(raw_image) File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pypad-0.0.1-py2.6.egg/pypad/autogeom/cspad.py", line 149, in call return self._assemble_image(raw_image) File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pypad-0.0.1-py2.6.egg/pypad/autogeom/cspad.py", line 560, in _assemble_image self.beam_location[i] -= min_offset AttributeError: 'CSPad' object has no attribute 'beam_location'

tjlane commented 11 years ago

@sellberg think this is fixed -- can you confirm?

sellberg commented 11 years ago

works as of https://github.com/tjlane/pypad/commit/a6437c41fdd3fecebbd02b9a2d365f24b1421292 (2013-04-19), was probably fixed earlier during the day