xcoll 0.5.7__py3-none-any.whl → 0.5.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xcoll might be problematic. Click here for more details.
- xcoll/beam_elements/elements_src/everest_crystal.h +1 -0
- xcoll/general.py +1 -1
- xcoll/interaction_record/interaction_record.py +4 -3
- {xcoll-0.5.7.dist-info → xcoll-0.5.8.dist-info}/METADATA +1 -1
- {xcoll-0.5.7.dist-info → xcoll-0.5.8.dist-info}/RECORD +8 -9
- xcoll/beam_elements/__init__.py.orig +0 -34
- {xcoll-0.5.7.dist-info → xcoll-0.5.8.dist-info}/LICENSE +0 -0
- {xcoll-0.5.7.dist-info → xcoll-0.5.8.dist-info}/NOTICE +0 -0
- {xcoll-0.5.7.dist-info → xcoll-0.5.8.dist-info}/WHEEL +0 -0
|
@@ -138,6 +138,7 @@ EverestCollData EverestCrystal_init(EverestCrystalData el, LocalParticle* part0,
|
|
|
138
138
|
coll->csref[0] = CrystalMaterialData_get_cross_section(material, 0);
|
|
139
139
|
coll->csref[1] = CrystalMaterialData_get_cross_section(material, 1);
|
|
140
140
|
coll->csref[5] = CrystalMaterialData_get_cross_section(material, 5);
|
|
141
|
+
coll->only_mcs = CrystalMaterialData_get__only_mcs(material);
|
|
141
142
|
coll->dlri = CrystalMaterialData_get_crystal_radiation_length(material);
|
|
142
143
|
coll->dlyi = CrystalMaterialData_get_crystal_nuclear_length(material);
|
|
143
144
|
coll->ai = CrystalMaterialData_get_crystal_plane_distance(material);
|
xcoll/general.py
CHANGED
|
@@ -238,14 +238,14 @@ class InteractionRecord(xt.BeamElement):
|
|
|
238
238
|
'int': [shortcuts[inter] for inter in self._inter[mask]],
|
|
239
239
|
'pid': self.id_before[mask]
|
|
240
240
|
})
|
|
241
|
-
return df.groupby('pid', sort=False)['int'].agg(list)
|
|
241
|
+
return df.groupby('pid', sort=False, group_keys=False)['int'].agg(list)
|
|
242
242
|
else:
|
|
243
243
|
df = pd.DataFrame({
|
|
244
244
|
'int': [shortcuts[inter] for inter in self._inter[mask]],
|
|
245
245
|
'turn': self.at_turn[mask],
|
|
246
246
|
'pid': self.id_before[mask]
|
|
247
247
|
})
|
|
248
|
-
return df.groupby(['pid', 'turn'], sort=False)['int'].apply(list)
|
|
248
|
+
return df.groupby(['pid', 'turn'], sort=False, group_keys=False)['int'].apply(list)
|
|
249
249
|
|
|
250
250
|
def first_touch_per_turn(self, frame=None):
|
|
251
251
|
n_rows = self._index.num_recorded
|
|
@@ -253,7 +253,8 @@ class InteractionRecord(xt.BeamElement):
|
|
|
253
253
|
'at_turn': self.at_turn[:n_rows],
|
|
254
254
|
'at_element': self.at_element[:n_rows]})
|
|
255
255
|
mask = np.char.startswith(self.interaction_type[:n_rows], 'Enter Jaw')
|
|
256
|
-
idx_first = [group.at_element.idxmin() for _, group in df[mask].groupby(
|
|
256
|
+
idx_first = [group.at_element.idxmin() for _, group in df[mask].groupby(
|
|
257
|
+
['at_turn', 'id_before'], sort=False, group_keys=False)]
|
|
257
258
|
df_first = self.to_pandas(frame=frame).loc[idx_first]
|
|
258
259
|
df_first.insert(2, "jaw", df_first.interaction_type.astype(str).str[-1])
|
|
259
260
|
to_drop = ['interaction_type',
|
|
@@ -3,7 +3,6 @@ NOTICE,sha256=6DO_E7WCdRKc42vUoVVBPGttvQi4mRt9fAcxj9u8zy8,74
|
|
|
3
3
|
xcoll/__init__.py,sha256=b_61vh5irhf5fPmqTFJlyhNSt4rmftXg9uXPIEpgVB4,1612
|
|
4
4
|
xcoll/_manager.py,sha256=9NQKaNxZR2I1ChMVBeKQc0A8h6W8gVgRRg72a5NgbXU,808
|
|
5
5
|
xcoll/beam_elements/__init__.py,sha256=06bU8rzvlUPhcvwpaUippddm5IChpcCHBvpmvXJQU74,1122
|
|
6
|
-
xcoll/beam_elements/__init__.py.orig,sha256=0R3TLw1J5WBsi5TdWOR4ERg4oD_WEzabJOF3lIsSkNc,1561
|
|
7
6
|
xcoll/beam_elements/absorber.py,sha256=efK6gyUgD4x_FnBLpMR7-5_HCdp_753nkYikcdn6ulw,2502
|
|
8
7
|
xcoll/beam_elements/base.py,sha256=6scwhofls5AHPJcUyEbTJOJ8U86EQU4S7BB7NGoE_j0,52728
|
|
9
8
|
xcoll/beam_elements/blowup.py,sha256=gBXdlISvoDiMjXVpA77ls5QdAU3H9krwvFt2bSW_NII,8029
|
|
@@ -13,17 +12,17 @@ xcoll/beam_elements/elements_src/blowup.h,sha256=YlTt7YxswLM0ZjPuEjuE7xzjQ3hMt6F
|
|
|
13
12
|
xcoll/beam_elements/elements_src/emittance_monitor.h,sha256=vlHzQFoUjKQHWBmzpaSzRbILtxSWqEasMtxHC-FFoAc,7078
|
|
14
13
|
xcoll/beam_elements/elements_src/everest_block.h,sha256=iQ5_fyCil9Y4FJqccJdlqSVOHDtQNISQ_nTAJdGhqIs,6032
|
|
15
14
|
xcoll/beam_elements/elements_src/everest_collimator.h,sha256=DlWkb5RORnp5VwI7E31Q7NLXRYDjXO1yPhTcSEMQgPg,9765
|
|
16
|
-
xcoll/beam_elements/elements_src/everest_crystal.h,sha256=
|
|
15
|
+
xcoll/beam_elements/elements_src/everest_crystal.h,sha256=WwwNF6it7TuOimhpSXJa7UXqp_i3wVZ_fXlTStn4db0,12193
|
|
17
16
|
xcoll/beam_elements/everest.py,sha256=PA_VWpnPrIuO1xN__eKyT_ejbGZK7p93QHDVi3re7cM,8541
|
|
18
17
|
xcoll/beam_elements/monitor.py,sha256=zzMdN3JMFSAs-30_ntRvd5qZGdsXfGtColhiFDuMcIk,16928
|
|
19
18
|
xcoll/colldb.py,sha256=lEpkDRAT54szT9i7-jbTMRvkuW_0W2piZCdDaungcIs,30983
|
|
20
|
-
xcoll/general.py,sha256=
|
|
19
|
+
xcoll/general.py,sha256=tYbVvHS7A8CxAZYyCBXWq0RaD9mPy8wBP8aLcV17TKU,534
|
|
21
20
|
xcoll/headers/checks.h,sha256=qdXsOTBOK1MwW6bdFF93j4yE648mcDtEv5rGN1w9sfk,1582
|
|
22
21
|
xcoll/headers/particle_states.h,sha256=DZa_ZSaJrjnA8aHFriZKfRCkArQ8nK1t445MRwevDtA,840
|
|
23
22
|
xcoll/initial_distribution.py,sha256=x5G4LTXn4boEg5jBFrQCk_l759h91XiAUhDTdcUvLkc,8779
|
|
24
23
|
xcoll/install.py,sha256=SxEFQnhWXlsXyPBIo847q6wPgId_f5ZtFRR1awGbkjc,2108
|
|
25
24
|
xcoll/interaction_record/__init__.py,sha256=UFoLiKa-z2oX7YoszP-7Vgdt1nM6kT382v1CaIu8_u0,50
|
|
26
|
-
xcoll/interaction_record/interaction_record.py,sha256=
|
|
25
|
+
xcoll/interaction_record/interaction_record.py,sha256=ixsQtVZn71vVEuTAA27a2NWcZZZ8iAcWFOa58bcWEQU,13271
|
|
27
26
|
xcoll/interaction_record/interaction_record_src/interaction_record.h,sha256=0rNagnfSGc2i1jauOMIcDbj9QFic9dV_MOyqVx1kw5Q,6067
|
|
28
27
|
xcoll/interaction_record/interaction_types.py,sha256=Vh6oFYKdRNOx9hc_E0iT8auNZVKC0qYVp_p7oyClZ8o,2894
|
|
29
28
|
xcoll/line_tools.py,sha256=UtRVlwX1T-wzocFzgb3VoJuBavvggNnYONjvP2WigKM,14326
|
|
@@ -407,8 +406,8 @@ xcoll/scattering_routines/geometry/objects.h,sha256=A5ktGvVlSkC4hUsI_PQFsE80CuDw
|
|
|
407
406
|
xcoll/scattering_routines/geometry/rotation.h,sha256=lO3RaQBys9r0ROMjR8T8Rr7UsIEm-H9_C_70Nwz4MXY,701
|
|
408
407
|
xcoll/scattering_routines/geometry/segments.h,sha256=7nKnnin2ByxkKyaYwGvFaqgLQg5uBba4CdLHL7L3iQs,7667
|
|
409
408
|
xcoll/scattering_routines/geometry/sort.h,sha256=b1MkFO2ddzv1fWGeQzsLuz46qo2pKyRSXHjoAEVU7Ts,5763
|
|
410
|
-
xcoll-0.5.
|
|
411
|
-
xcoll-0.5.
|
|
412
|
-
xcoll-0.5.
|
|
413
|
-
xcoll-0.5.
|
|
414
|
-
xcoll-0.5.
|
|
409
|
+
xcoll-0.5.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
410
|
+
xcoll-0.5.8.dist-info/METADATA,sha256=ikWtL-ecHne0cta39XCx61xI5-P_DwuJY2jmHTPLmSo,2709
|
|
411
|
+
xcoll-0.5.8.dist-info/NOTICE,sha256=6DO_E7WCdRKc42vUoVVBPGttvQi4mRt9fAcxj9u8zy8,74
|
|
412
|
+
xcoll-0.5.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
413
|
+
xcoll-0.5.8.dist-info/RECORD,,
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# copyright ############################### #
|
|
2
|
-
# This file is part of the Xcoll package. #
|
|
3
|
-
# Copyright (c) CERN, 2024. #
|
|
4
|
-
# ######################################### #
|
|
5
|
-
|
|
6
|
-
from .base import BaseBlock, BaseCollimator, BaseCrystal
|
|
7
|
-
from .absorber import BlackAbsorber, BlackCrystal
|
|
8
|
-
from .everest import EverestBlock, EverestCollimator, EverestCrystal
|
|
9
|
-
from .blowup import BlowUp
|
|
10
|
-
from .monitor import EmittanceMonitor
|
|
11
|
-
|
|
12
|
-
block_classes = tuple(v for v in globals().values()
|
|
13
|
-
if isinstance(v, type) and issubclass(v, BaseBlock) and v != BaseBlock
|
|
14
|
-
and v != BaseCollimator and v != BaseCrystal)
|
|
15
|
-
# Includes crystals
|
|
16
|
-
collimator_classes = tuple(v for v in globals().values()
|
|
17
|
-
if isinstance(v, type) and (issubclass(v, BaseCollimator) or issubclass(v, BaseCrystal))
|
|
18
|
-
and v != BaseCollimator and v != BaseCrystal)
|
|
19
|
-
crystal_classes = tuple(v for v in globals().values()
|
|
20
|
-
if isinstance(v, type) and issubclass(v, BaseCrystal) and v != BaseCrystal)
|
|
21
|
-
|
|
22
|
-
element_classes = block_classes + (BlowUp, EmittanceMonitor)
|
|
23
|
-
|
|
24
|
-
<<<<<<< HEAD
|
|
25
|
-
# These should not go into any of the classes lists
|
|
26
|
-
from .k2 import _K2Collimator, _K2Crystal
|
|
27
|
-
_all_collimator_classes = collimator_classes + (_K2Collimator, _K2Crystal)
|
|
28
|
-
_all_crystal_classes = crystal_classes + (_K2Crystal,)
|
|
29
|
-
=======
|
|
30
|
-
# For compatibility with _K2Collimators
|
|
31
|
-
_all_block_classes = block_classes
|
|
32
|
-
_all_collimator_classes = collimator_classes
|
|
33
|
-
_all_crystal_classes = crystal_classes
|
|
34
|
-
>>>>>>> release/v0.6.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|