Comments (4)
Hello,
sure I can release something when this is fixed. It took me a moment to realize that the problem only appears when using pip and not when using setup.py directly. I think I just had to remove an offending option in setup.py since the mentioned data files are otherwise already included correctly (maybe even duplicated in setup.py and MANIFEST.in).
Can you confirm commit 8c7e3eb fixes the issue for you?
cheers
Dominik
from xrayutilities.
from xrayutilities.
Just for info I have these warnings during the tests
=============================== warnings summary ===============================
xrayutilities/analysis/sample_align.py:32
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xrayutilities/build/xrayutilities/analysis/sample_align.py:32: DeprecationWarning: Please use `center_of_mass` from the `scipy.ndimage` namespace, the `scipy.ndimage.measurements` namespace is deprecated.
from scipy.ndimage.measurements import center_of_mass
tests/test_examples.py:70
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xrayutilities/build/tests/test_examples.py:70: PytestCollectionWarning: cannot collect test class 'TestExampleScriptsMeta' because it has a __init__ constructor (from: .pybuild/cpython3_3.10_xrayutilities/build/tests/test_examples.py)
class TestExampleScriptsMeta(type):
../../../../../../usr/lib/python3/dist-packages/past/builtins/misc.py:45
/usr/lib/python3/dist-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
from imp import reload
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit_linear
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xrayutilities/build/xrayutilities/math/fit.py:132: DeprecationWarning: Please use `Model` from the `scipy.odr` namespace, the `scipy.odr.odrpack` namespace is deprecated.
peak = odr.Model(gfunc, fjacd=gfunc_dx, fjacb=gfunc_dp)
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit_linear
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xrayutilities/build/xrayutilities/math/fit.py:136: DeprecationWarning: Please use `RealData` from the `scipy.odr` namespace, the `scipy.odr.odrpack` namespace is deprecated.
mydata = odr.RealData(xdata, ydata, sy=sy)
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_gaussfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_lorentzfit_linear
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit
.pybuild/cpython3_3.10_xrayutilities/build/tests/test_math_peak_fit.py::TestPeakFit::test_pvoigtfit_linear
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_xrayutilities/build/xrayutilities/math/fit.py:138: DeprecationWarning: Please use `ODR` from the `scipy.odr` namespace, the `scipy.odr.odrpack` namespace is deprecated.
myodr = odr.ODR(mydata, peak, beta0=iparams, maxit=maxit)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========== 175 passed, 69 skipped, 21 warnings in 142.09s (0:02:22) ===========
from xrayutilities.
Most of these warnings I have already taken care of, and they should reduce with the new release.
thanks for reporting the issue. Let me know in case of more problems after the new release (should be online today)
from xrayutilities.
Related Issues (20)
- make it possible to show different planes in reciprocal space (xu.materials.show_reciprocal_space_plane)
- Clarification of `Experiment` parameters `ndir`, `idir` and `sampleor` HOT 1
- Implementation of the anisotropic Poisson ratio
- Implementation of multiprocessing for simpack.DynamicalModel HOT 6
- 1.7.4 warning during the Debian build process (test) HOT 1
- C-code does not respect the xrayutilities.config.VERBOSITY
- add doctest integration in the azure pipelines
- implementation of FitModel is very weird
- _area_detector_calib_fit is an empty function? HOT 2
- Testdata for Mythen Detector HOT 3
- numpy 1.25 deprecation warnings
- Stacking orientation of non-cubic layers HOT 8
- Loading .ras Files HOT 5
- Import error with numpy.core.multiarray HOT 3
- Positional arguments in KinematicalModel.simulate() HOT 3
- multiprocessing not using multiple threads HOT 1
- how to perform reciprocal space mapping HOT 3
- Exceptions in thread during Convolve gets stuck waiting for results instead of throwing an error in the main function call HOT 6
- lmfit 1.3.0 breaks simpack.FitModel HOT 2
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 xrayutilities.