File tree 6 files changed +58
-6
lines changed
6 files changed +58
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Release notes
2
2
3
- ## Version X.Y.Z
3
+ ## Version 2.2.4
4
+
5
+ ### Changes
6
+
7
+ - the list of HKL reflections will now be automatically be re-generated
8
+ for a PowderPatternDiffraction when the Crystal's spacegroup changes,
9
+ or the lattice parameters are modified by more than 0.5%
10
+
11
+ ### Fixes
12
+
13
+ - Fixed the powder pattern indexing test
14
+
15
+ ## Version 2.2.3
16
+
17
+ ### Added
18
+
19
+ - Support for windows install (works with python 3.7, and
20
+ also -only with pypy- 3.8 and 3.9)
21
+ - Native support for Apple arm64 (M1, M2) processors
22
+ - Fourier maps calculation
23
+ - Add gDiffractionDataSingleCrystalRegistry to globals
24
+
25
+ ## Version 2.2.2
26
+
27
+ ### Changes
28
+
29
+ - Add correct wrapping for C++-instantiated objects available through global
30
+ registries, e.g. when loading an XML file. The objects are decorated with
31
+ the python functions when accessed through the global registries GetObj()
32
+ - Moved global object registries to pyobjcryst.globals
33
+ - Update documentation
4
34
5
35
### Fixed
6
36
7
37
- Fix access to PRISM_TETRAGONAL_DICAP, PRISM_TRIGONAL,
8
38
ICOSAHEDRON and TRIANGLE_PLANE.
9
-
39
+ - Fix powder pattern plot issues (NaN and update of hkl text with recent
40
+ matplotlib versions)
10
41
11
42
## Version 2.2.1 -- 2021-11-28
12
43
Original file line number Diff line number Diff line change 1
1
python :
2
2
- 3.10
3
+ - 3.11
3
4
- 3.9
4
5
- 3.8
5
6
- 3.7
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ requirements:
26
26
- python
27
27
- pip
28
28
- numpy {{ numpy }}
29
- - libobjcryst 2022.1.2
29
+ - libobjcryst 2022.1.3
30
30
- boost {{ boost }}
31
31
32
32
run :
Original file line number Diff line number Diff line change 20
20
21
21
# Use this version when git data are not available as in a git zip archive.
22
22
# Update when tagging a new release.
23
- FALLBACK_VERSION = '2.2.3 '
23
+ FALLBACK_VERSION = '2.2.4 '
24
24
25
25
# define extension arguments here
26
26
ext_kws = {
Original file line number Diff line number Diff line change @@ -92,10 +92,10 @@ void wrap_scatteringdata()
92
92
// Have to convert from Python array to C++ array
93
93
// .def("SetHKL", &ScatteringData::SetHKL)
94
94
.def (" GenHKLFullSpace2" ,
95
- &ScatteringData::GenHKLFullSpace2,
95
+ ( void (ScatteringData::*)( const REAL, const bool )) &ScatteringData::GenHKLFullSpace2,
96
96
(bp::arg (" maxsithsl" ), bp::arg (" unique" )=false ))
97
97
.def (" GenHKLFullSpace" ,
98
- &ScatteringData::GenHKLFullSpace,
98
+ ( void (ScatteringData::*)( const REAL, const bool )) &ScatteringData::GenHKLFullSpace,
99
99
(bp::arg (" maxtheta" ), bp::arg (" unique" )=false ))
100
100
// have to figure this out
101
101
// .def("GetRadiationType", &ScatteringData::GetRadiationType,
Original file line number Diff line number Diff line change @@ -218,6 +218,26 @@ def test_spacegroup_explorer(self):
218
218
# for s in spgex.GetScores():
219
219
# print(s)
220
220
221
+ def test_update_nbrefl (self ):
222
+ c = loadcifdata ("paracetamol.cif" )
223
+ p = PowderPattern ()
224
+ p .SetWavelength (1.5 )
225
+ x = np .linspace (0 , 40 , 4000 )
226
+ p .SetPowderPatternX (np .deg2rad (x ))
227
+ pd = p .AddPowderPatternDiffraction (c )
228
+ p .GetPowderPatternCalc ()
229
+ self .assertEqual (pd .GetNbRefl (), 89 )
230
+ # Change lattice parameter, the reflection list is updated
231
+ # during the next powder pattern calculation
232
+ c .a *= 1.1
233
+ p .GetPowderPatternCalc ()
234
+ self .assertEqual (pd .GetNbRefl (), 92 )
235
+ # Change the spacegroup, the reflection list is updated
236
+ # during the next powder pattern calculation
237
+ c .GetSpaceGroup ().ChangeSpaceGroup ("P1" )
238
+ p .GetPowderPatternCalc ()
239
+ self .assertEqual (pd .GetNbRefl (), 187 )
240
+
221
241
# def test_SetScaleFactor(self): assert False
222
242
223
243
You can’t perform that action at this time.
0 commit comments