amor-eos 3.3.2__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.2 → amor_eos-3.3.4}/PKG-INFO +1 -1
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/PKG-INFO +1 -1
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/__init__.py +2 -2
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/file_reader.py +10 -11
- {amor_eos-3.3.2 → amor_eos-3.3.4}/LICENSE +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/README.rst +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/SOURCES.txt +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/dependency_links.txt +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/entry_points.txt +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/requires.txt +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/amor_eos.egg-info/top_level.txt +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/__main__.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/command_line.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/compat.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/const.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/e2h.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/event_analysis.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/event_data_types.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/event_handling.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/header.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/helpers.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/helpers_fallback.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/helpers_numba.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/instrument.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/kafka_events.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/kafka_serializer.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/logconfig.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/ls.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/nicos.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/nicos_interface.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/normalization.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/options.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/path_handling.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/projection.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/reduction_e2h.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/reduction_kafka.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/eos/reduction_reflectivity.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/pyproject.toml +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/setup.cfg +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/tests/test_event_handling.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/tests/test_full_analysis.py +0 -0
- {amor_eos-3.3.2 → amor_eos-3.3.4}/tests/test_full_analysis_v2.py +0 -0
|
@@ -221,7 +221,8 @@ class AmorHeader:
|
|
|
221
221
|
self._start_time_ns = np.uint64(start_timestamp*1e9)
|
|
222
222
|
|
|
223
223
|
# read general information and first data set
|
|
224
|
-
title
|
|
224
|
+
# make sure title has only a single line
|
|
225
|
+
title = self.rv('title').replace('\r', ' ').replace('\n', ' ').replace(' ', ' ')
|
|
225
226
|
proposal_id = self.rv('proposal_id')
|
|
226
227
|
user_name = self.rv('user_name')
|
|
227
228
|
user_affiliation = self.rv('user_affiliation', default='unknown')
|
|
@@ -571,18 +572,16 @@ class AmorEventData(AmorHeader):
|
|
|
571
572
|
def read_beam_monitor_stream(self, packets):
|
|
572
573
|
if self._beam_monitor is None:
|
|
573
574
|
return None
|
|
574
|
-
_signal = self._beam_monitor.signal
|
|
575
|
-
_time = self._beam_monitor.time
|
|
576
575
|
plse = np.array([0, 5, 6, 11])
|
|
577
576
|
base = np.array([2, 3, 8, 9])
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
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
|
|
586
585
|
|
|
587
586
|
def info(self):
|
|
588
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
|