Comments (9)
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.
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.
integrated2d knows about this nbPt_rad
from pyfai.
why not using also the nbPt_rad also in integrate1d.
this way you should avoid this keyqrg conversion.
from pyfai.
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.
why not using also the nbPt_rad also in integrate1d ?
I prefer not changing the API.
from pyfai.
Can you confirm the issue is fixed upstream ?
from pyfai.
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.
should be fixed.
from pyfai.
Related Issues (20)
- Move to pydata sphinx theme HOT 1
- change location of _version.py
- Advanced tutorial describing the orientation
- Still a bug in the calculation of delta-chi when playing with orientation HOT 2
- Refactor orientation management in pyFAI-calib2 widget
- Add benchmark value to the pyFAI-calib2
- Add grazing-incidence units HOT 1
- New tutorial with flatfield calculation for PDF measurments
- New deprecatin warning with silx v2.0
- Crash after clicking 'Extract more rings' during calibration with pyFAI-calib2 HOT 8
- pyFAI-diffmap removes all files, not selected files
- Missing metadata for application description
- Possible memory leak when using multigeomety ? HOT 1
- `method=(1d int, full split, LUT, cython)` gives different poisson uncertainties in comparison to other methods HOT 2
- Detector definition with variable pixel geometry HOT 1
- *Azimuthal* error model is not available in histogram and CSC algorithms
- Possible regression on Apple M1 with Python 3.12
- bug in `diff_map` application HOT 1
- fails to set the implementation in `diff_tomo`
- PyFAI-calib2 still crashes on macOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfai.