C++ parser of .sht files.
Project description
shtRipper
Код для извлечения данных из .sht файлов. На текущий момент файлы версии ниже 2 не поддерживаются, что будет исправлено
при необходимости.
import shtRipper
filename = 'd:/data/cfm/original/sht40808.SHT'
res = shtRipper.ripper.read(filename)
print(res.keys())
Для упаковки данных в формат .sht:
import shtRipper
to_pack = {
'signal with error': {
'comment': 'Точки хранят ещё и погрешность, требует много памяти.',
'unit': 'T_e(eV)',
'x': x,
'y': T_c,
'err': T_err
},
'X Y signal': {
'comment': 'Точки хранятся парой значений, требует много памяти.',
'unit': 'T_e(eV)',
'x': x,
'y': n_c
},
'Y signal with fixed X-grid': {
'comment': 'Этот тип хранения данных предназначен для данных 16-бит АЦП',
'unit': 'U(V)',
'tMin': 0.0, # mininun time
'tMax': 100.0, # maximum time
'offset': 0.0, # ADC zero level offset
'yRes': 0.0001, # ADC resolution: 0.0001 Volt per adc bit
'y': [math.sin(i / 10) for i in range(100)]
}
}
packed = shtRipper.ripper.write(path='D:/tmp/', filename='example.SHT', data=to_pack)
if len(packed) != 0:
print('packed error = "%s"' % packed)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shtRipper_cpp-1.2.9.tar.gz
(29.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shtRipper_cpp-1.2.9.tar.gz.
File metadata
- Download URL: shtRipper_cpp-1.2.9.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670692d0cc93a0ab68ff8353483480d6560e7ea6149496eceebfed7640c11537
|
|
| MD5 |
c10c94d99e0f25c9d1d8723891543256
|
|
| BLAKE2b-256 |
85b6f6d977fc7595a2c55912f4b36dc335c800646004462bbafcb9851057d8c9
|
File details
Details for the file shtRipper_cpp-1.2.9-py3-none-any.whl.
File metadata
- Download URL: shtRipper_cpp-1.2.9-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b54b32859355633b53a20ef68ae75cf97974774bc7d448a76cc44cd4bebd442
|
|
| MD5 |
c5078f1a3ca6b7558797c2389d944db4
|
|
| BLAKE2b-256 |
eda4bfe305befce35e26a9701115e3dc4323a05eca96f6e8ea9374ba2ae4b371
|