Giter Club home page Giter Club logo

Comments (9)

picca avatar picca commented on June 10, 2024

ok so in the class I just added a default self.hdf5_path = None
but when I click on start, I got this error message

20120966@diffabs3:~/ruche/published-data$ pyFAI-integrate lab6.edf
Dump!
Detector Xpad_flat PixelSize= 1.300e-04, 1.300e-04 m
Wavelength= 6.500000e-11m
SampleDetDist= 3.828605e-01m PONI= 1.174935e-01, 5.737684e-02m rot1=0.022558 rot2= -0.029589 rot3= 0.000000 rad
DirectBeamDist= 383.126mm Center: x=374.915, y=816.606 pix Tilt=2.132 deg tiltPlanRotation= -127.310 deg
INFO:pyFAI.integrate_widget:Parameters for integration:
dummy: None
error_model: None
delta_dummy: None
safe: False
filename: None
polarization_factor: None
correctSolidAngle: True
nbPt_rad: 360
method: lut
unit: 2th_deg
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pyFAI/integrate_widget.py", line 253, in proceed
res=self.ai.integrate1d(**kwarg)[0]
TypeError: integrate1d() got an unexpected keyword argument 'nbPt_rad'

so it seems that integrated1d does not know about this 'nbPt_rad' keyword.

from pyfai.

picca avatar picca commented on June 10, 2024

The current definition of integrate1d knows about nbPt and not nbPt_rad, but this nbPt is not even a keywork.
This is a required parameter.

def integrate1d(self, data, nbPt, filename=None,
correctSolidAngle=1,
variance=None, error_model=None,
radial_range=None, azimuth_range=None,
mask=None, dummy=None, delta_dummy=None,
polarization_factor=None, dark=None, flat=None,
method="lut", unit=units.Q, safe=True):

from pyfai.

picca avatar picca commented on June 10, 2024

integrated2d knows about this nbPt_rad

from pyfai.

picca avatar picca commented on June 10, 2024

why not using also the nbPt_rad also in integrate1d.
this way you should avoid this keyqrg conversion.

from pyfai.

kif avatar kif commented on June 10, 2024

On Thu, 11 Jul 2013 05:41:14 -0700
picca [email protected] wrote:

why not using also the nbPt_rad also in integrate1d.
this way you should avoid this keyqrg conversion.

There should be a piece of code nbPt_rad into nbPt in the 1D case.
I thought this bug was already fixed (integrate_widget l 143),
apparently not wverywhere.
if kwarg.get("nbPt_rad"):
kwarg["nbPt"] = kwarg.pop("nbPt_rad")

Thanks for spotting it.

Jérôme Kieffer [email protected]

from pyfai.

kif avatar kif commented on June 10, 2024

why not using also the nbPt_rad also in integrate1d ?
I prefer not changing the API.

from pyfai.

kif avatar kif commented on June 10, 2024

Can you confirm the issue is fixed upstream ?

from pyfai.

picca avatar picca commented on June 10, 2024

now, it seems that clicking of ok

20120966@diffabs3:~$ pyFAI-integrate Si_1379.edf
INFO:root:Enter, port=54321.
INFO:pyFAI:Socket opened for debugging using rfoo
INFO:root:Enter.
Dump!
Detector Xpad_flat PixelSize= 1.300e-04, 1.300e-04 m
Wavelength= 6.500000e-11m
SampleDetDist= 1.638408e-01m PONI= 9.569081e-02, 4.231174e-02m rot1=0.000367 rot2= 0.127057 rot3= -0.000000 rad
DirectBeamDist= 165.172mm Center: x=325.013, y=897.082 pix Tilt=7.280 deg tiltPlanRotation= 90.165 deg
INFO:pyFAI.integrate_widget:Parameters for integration:
dummy: None
error_model: poisson
delta_dummy: None
safe: False
filename: None
polarization_factor: None
correctSolidAngle: True
nbPt_rad: 900
method: lut
unit: 2th_deg
INFO:pyFAI.azimuthalIntegrator:AI.integrate1d: Resetting integrator because init
INFO:pyFAI.integrate_widget:Processing Done in 0.832s !

but no .xy files are generated ???
no plot also show up

from pyfai.

kif avatar kif commented on June 10, 2024

should be fixed.

from pyfai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.