summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 07:22:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 07:22:50 +0000
commita41c8e639a127e5174485c0029851ff964bd017e (patch)
tree6b0ce3906a4f3958d5b11453a59a9b20a82967d5
parent679ba4e63d0bf3583f39fa556ccc31c159c5db22 (diff)
automatic import of python-ess-streaming-data-types
-rw-r--r--.gitignore1
-rw-r--r--python-ess-streaming-data-types.spec303
-rw-r--r--sources1
3 files changed, 305 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ac0090e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ess_streaming_data_types-0.22.1.tar.gz
diff --git a/python-ess-streaming-data-types.spec b/python-ess-streaming-data-types.spec
new file mode 100644
index 0000000..7edac26
--- /dev/null
+++ b/python-ess-streaming-data-types.spec
@@ -0,0 +1,303 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ess-streaming-data-types
+Version: 0.22.1
+Release: 1
+Summary: Python utilities for handling ESS streamed data
+License: BSD 2-Clause License
+URL: https://github.com/ess-dmsc/python-streaming-data-types
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fd/cf/264e07762facf9a1632220565e095b9e501f7167599ccc376c88485f7ebf/ess_streaming_data_types-0.22.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-flatbuffers
+Requires: python3-numpy
+Requires: python3-flake8
+Requires: python3-pre-commit
+Requires: python3-pytest
+Requires: python3-tox
+
+%description
+
+# Python Streaming Data Types
+Utilities for working with the FlatBuffers schemas used at the European
+Spallation Source ERIC for data transport.
+
+https://github.com/ess-dmsc/streaming-data-types
+
+## FlatBuffer Schemas
+
+| name | description |
+|------|------------------------------------------------------------------------------|
+| hs00 | Histogram schema (deprecated in favour of hs01) |
+| hs01 | Histogram schema |
+| ns10 | NICOS cache entry schema |
+| pl72 | Run start |
+| 6s4t | Run stop |
+| f142 | Log data (deprecated in favour of f144) |
+| f144 | Log data |
+| ev42 | Event data (deprecated in favour of ev44) |
+| ev43 | Event data from multiple pulses |
+| ev44 | Event data with signed data types |
+| x5f2 | Status messages |
+| tdct | Timestamps |
+| ep00 | EPICS connection info (deprecated in favour of ep01) |
+| ep01 | EPICS connection info |
+| rf5k | Forwarder configuration update |
+| answ | File-writer command response |
+| wrdn | File-writer finished writing |
+| NDAr | **Deprecated** |
+| ADAr | EPICS areaDetector data |
+| al00 | Alarm/status messages used by the Forwarder and NICOS |
+| senv | **Deprecated** |
+| json | Generic JSON data |
+| se00 | Arrays with optional timestamps, for example waveform data. Replaces _senv_. |
+
+### hs00 and hs01
+Schema for histogram data. It is one of the more complicated to use schemas.
+It takes a Python dictionary as its input; this dictionary needs to have correctly
+named fields.
+
+The input histogram data for serialisation and the output deserialisation data
+have the same dictionary "layout".
+Example for a 2-D histogram:
+```json
+hist = {
+ "source": "some_source",
+ "timestamp": 123456,
+ "current_shape": [2, 5],
+ "dim_metadata": [
+ {
+ "length": 2,
+ "unit": "a",
+ "label": "x",
+ "bin_boundaries": np.array([10, 11, 12]),
+ },
+ {
+ "length": 5,
+ "unit": "b",
+ "label": "y",
+ "bin_boundaries": np.array([0, 1, 2, 3, 4, 5]),
+ },
+ ],
+ "last_metadata_timestamp": 123456,
+ "data": np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]),
+ "errors": np.array([[5, 4, 3, 2, 1], [10, 9, 8, 7, 6]]),
+ "info": "info_string",
+}
+```
+The arrays passed in for `data`, `errors` and `bin_boundaries` can be NumPy arrays
+or regular lists, but on deserialisation they will be NumPy arrays.
+
+
+## Developer documentation
+
+See [README_DEV.md](README_DEV.md)
+
+
+%package -n python3-ess-streaming-data-types
+Summary: Python utilities for handling ESS streamed data
+Provides: python-ess-streaming-data-types
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ess-streaming-data-types
+
+# Python Streaming Data Types
+Utilities for working with the FlatBuffers schemas used at the European
+Spallation Source ERIC for data transport.
+
+https://github.com/ess-dmsc/streaming-data-types
+
+## FlatBuffer Schemas
+
+| name | description |
+|------|------------------------------------------------------------------------------|
+| hs00 | Histogram schema (deprecated in favour of hs01) |
+| hs01 | Histogram schema |
+| ns10 | NICOS cache entry schema |
+| pl72 | Run start |
+| 6s4t | Run stop |
+| f142 | Log data (deprecated in favour of f144) |
+| f144 | Log data |
+| ev42 | Event data (deprecated in favour of ev44) |
+| ev43 | Event data from multiple pulses |
+| ev44 | Event data with signed data types |
+| x5f2 | Status messages |
+| tdct | Timestamps |
+| ep00 | EPICS connection info (deprecated in favour of ep01) |
+| ep01 | EPICS connection info |
+| rf5k | Forwarder configuration update |
+| answ | File-writer command response |
+| wrdn | File-writer finished writing |
+| NDAr | **Deprecated** |
+| ADAr | EPICS areaDetector data |
+| al00 | Alarm/status messages used by the Forwarder and NICOS |
+| senv | **Deprecated** |
+| json | Generic JSON data |
+| se00 | Arrays with optional timestamps, for example waveform data. Replaces _senv_. |
+
+### hs00 and hs01
+Schema for histogram data. It is one of the more complicated to use schemas.
+It takes a Python dictionary as its input; this dictionary needs to have correctly
+named fields.
+
+The input histogram data for serialisation and the output deserialisation data
+have the same dictionary "layout".
+Example for a 2-D histogram:
+```json
+hist = {
+ "source": "some_source",
+ "timestamp": 123456,
+ "current_shape": [2, 5],
+ "dim_metadata": [
+ {
+ "length": 2,
+ "unit": "a",
+ "label": "x",
+ "bin_boundaries": np.array([10, 11, 12]),
+ },
+ {
+ "length": 5,
+ "unit": "b",
+ "label": "y",
+ "bin_boundaries": np.array([0, 1, 2, 3, 4, 5]),
+ },
+ ],
+ "last_metadata_timestamp": 123456,
+ "data": np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]),
+ "errors": np.array([[5, 4, 3, 2, 1], [10, 9, 8, 7, 6]]),
+ "info": "info_string",
+}
+```
+The arrays passed in for `data`, `errors` and `bin_boundaries` can be NumPy arrays
+or regular lists, but on deserialisation they will be NumPy arrays.
+
+
+## Developer documentation
+
+See [README_DEV.md](README_DEV.md)
+
+
+%package help
+Summary: Development documents and examples for ess-streaming-data-types
+Provides: python3-ess-streaming-data-types-doc
+%description help
+
+# Python Streaming Data Types
+Utilities for working with the FlatBuffers schemas used at the European
+Spallation Source ERIC for data transport.
+
+https://github.com/ess-dmsc/streaming-data-types
+
+## FlatBuffer Schemas
+
+| name | description |
+|------|------------------------------------------------------------------------------|
+| hs00 | Histogram schema (deprecated in favour of hs01) |
+| hs01 | Histogram schema |
+| ns10 | NICOS cache entry schema |
+| pl72 | Run start |
+| 6s4t | Run stop |
+| f142 | Log data (deprecated in favour of f144) |
+| f144 | Log data |
+| ev42 | Event data (deprecated in favour of ev44) |
+| ev43 | Event data from multiple pulses |
+| ev44 | Event data with signed data types |
+| x5f2 | Status messages |
+| tdct | Timestamps |
+| ep00 | EPICS connection info (deprecated in favour of ep01) |
+| ep01 | EPICS connection info |
+| rf5k | Forwarder configuration update |
+| answ | File-writer command response |
+| wrdn | File-writer finished writing |
+| NDAr | **Deprecated** |
+| ADAr | EPICS areaDetector data |
+| al00 | Alarm/status messages used by the Forwarder and NICOS |
+| senv | **Deprecated** |
+| json | Generic JSON data |
+| se00 | Arrays with optional timestamps, for example waveform data. Replaces _senv_. |
+
+### hs00 and hs01
+Schema for histogram data. It is one of the more complicated to use schemas.
+It takes a Python dictionary as its input; this dictionary needs to have correctly
+named fields.
+
+The input histogram data for serialisation and the output deserialisation data
+have the same dictionary "layout".
+Example for a 2-D histogram:
+```json
+hist = {
+ "source": "some_source",
+ "timestamp": 123456,
+ "current_shape": [2, 5],
+ "dim_metadata": [
+ {
+ "length": 2,
+ "unit": "a",
+ "label": "x",
+ "bin_boundaries": np.array([10, 11, 12]),
+ },
+ {
+ "length": 5,
+ "unit": "b",
+ "label": "y",
+ "bin_boundaries": np.array([0, 1, 2, 3, 4, 5]),
+ },
+ ],
+ "last_metadata_timestamp": 123456,
+ "data": np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]),
+ "errors": np.array([[5, 4, 3, 2, 1], [10, 9, 8, 7, 6]]),
+ "info": "info_string",
+}
+```
+The arrays passed in for `data`, `errors` and `bin_boundaries` can be NumPy arrays
+or regular lists, but on deserialisation they will be NumPy arrays.
+
+
+## Developer documentation
+
+See [README_DEV.md](README_DEV.md)
+
+
+%prep
+%autosetup -n ess-streaming-data-types-0.22.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-ess-streaming-data-types -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.22.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..91ab5c8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1c63cfa32eb520d9a2f0d75b5d3bf718 ess_streaming_data_types-0.22.1.tar.gz