hRIXS functions
4 unresolved threads
4 unresolved threads
Merge request reports
Activity
Filter activity
There is something strange, yes. All changes of mnemonics not related to hrixs in this MR would mean to go back in time. See for instance the final definition of FFT sample Z that was introduced in e8ceaec5.
Also, the mnemonics order more or less follow the beamline, so I would put the hrixs ones somewhere after the KB, probably after FCCD.
added 18 commits
-
a9829e62...42769e28 - 16 commits from branch
master
- f5ad640d - Add hRIXS functions
- a8629280 - Integrate hRIXS functions to module
-
a9829e62...42769e28 - 16 commits from branch
66 66 "M2BEND": ({'source': 'SA3_XTD10_MIRR-2/MOTOR/BENDER', 67 67 'key': 'actualPosition.value', 68 68 'dim': None},), 69 "hRIXS_det": ({'source': 'SCS_HRIXS_DET/CAM/CAMERA:daqOutput', Minor: it would be better to place the HRIXS and CHEM mnemonics after the FFT or FCCD ones to more or less respect the order of the components in the beamline
Edited by Laurent Mercadier
added 1 commit
- b64c9318 - Add hRIXS class and centroid/integral methods
319 320 @property 321 def corrected(self): 322 return decentroid(self._centroid) 323 324 def spectrum(self, normalize=True): 325 spec_func = (self._centroid_spectrum if self.METHOD.lower() == 'centroid' 326 else self._integral_spectrum) 327 return spec_func(normalize=normalize) 328 329 def __sub__(self, other): 330 px, py = self.spectrum() 331 mx, my = other.spectrum() 332 return (px + mx) / 2, py - my 333 334 def __add__(self, other): - Resolved by Cammille Carinan
- Resolved by Cammille Carinan
added 2 commits
added 1 commit
- 8b40f020 - Create new class on addition by aggregating list of image views
375 norm = ((i_n + j_n) or 1) 376 374 377 return ix, (iy + jy) / norm 375 def split_images(images): 376 """ Split the images by the number of trains 377 and return the list of their views. """ 378 379 # Check if the images has already been splitted 380 if isinstance(images, list): 381 return images 382 383 # Check if the images is a numpy of of 2d image that follows 384 # the shape (num, y_dim, x_dim) 385 assert len(images.shape) == 3 386 387 return [np.squeeze(image) for image in np.vsplit(images, images.shape[0])] changed this line in version 7 of the diff
added 1 commit
- e9b7b74b - TIL casting list to numpy array returns the sliced view
mentioned in commit ad0907d3
Please register or sign in to reply