amor-eos 3.3.3__tar.gz → 3.3.4__tar.gz
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.
- {amor_eos-3.3.3 → amor_eos-3.3.4}/PKG-INFO +1 -1
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/PKG-INFO +1 -1
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/__init__.py +2 -2
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/file_reader.py +8 -10
- {amor_eos-3.3.3 → amor_eos-3.3.4}/LICENSE +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/README.rst +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/SOURCES.txt +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/dependency_links.txt +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/entry_points.txt +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/requires.txt +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/amor_eos.egg-info/top_level.txt +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/__main__.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/command_line.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/compat.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/const.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/e2h.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/event_analysis.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/event_data_types.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/event_handling.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/header.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/helpers.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/helpers_fallback.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/helpers_numba.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/instrument.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/kafka_events.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/kafka_serializer.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/logconfig.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/ls.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/nicos.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/nicos_interface.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/normalization.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/options.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/path_handling.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/projection.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/reduction_e2h.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/reduction_kafka.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/eos/reduction_reflectivity.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/pyproject.toml +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/setup.cfg +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/tests/test_event_handling.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/tests/test_full_analysis.py +0 -0
- {amor_eos-3.3.3 → amor_eos-3.3.4}/tests/test_full_analysis_v2.py +0 -0
|
@@ -572,18 +572,16 @@ class AmorEventData(AmorHeader):
|
|
|
572
572
|
def read_beam_monitor_stream(self, packets):
|
|
573
573
|
if self._beam_monitor is None:
|
|
574
574
|
return None
|
|
575
|
-
_signal = self._beam_monitor.signal
|
|
576
|
-
_time = self._beam_monitor.time
|
|
577
575
|
plse = np.array([0, 5, 6, 11])
|
|
578
576
|
base = np.array([2, 3, 8, 9])
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
return beam_monitor
|
|
577
|
+
_time = self._beam_monitor.time
|
|
578
|
+
fltr = (self.eventStartTime<=_time)&(_time<=packets.time[-1])
|
|
579
|
+
_time = _time[fltr]
|
|
580
|
+
_signal = self._beam_monitor.signal[fltr]
|
|
581
|
+
beam_monitor = np.recarray(shape=_time.shape[0], dtype=BM_TYPE)
|
|
582
|
+
beam_monitor.time = _time
|
|
583
|
+
beam_monitor.value = _signal[:, plse].sum(axis=1) - _signal[:, base].sum(axis=1)
|
|
584
|
+
return beam_monitor
|
|
587
585
|
|
|
588
586
|
def info(self):
|
|
589
587
|
output = ""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|