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
import time # not required
to_pack = {
'central Te': {
'comment': 'Температура в центре',
'unit': 'T_e(eV)',
'timestamp': time.time(), # not required
'x': [0.0, 1.2, 1.9],
'y': [0, 1, 3.16]
},
'signal 2': {
'comment': 'Температура в центре',
'unit': 'T_e(eV)',
'x': [0, 1],
'y': [0, 16]
}
}
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.3.tar.gz
(29.2 kB
view hashes)
Built Distribution
Close
Hashes for shtRipper_cpp-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8f51eca250a8af46293dd01f00f95e1deca6f63735d8a682458d8454ef64c1 |
|
MD5 | 547b06cd8af873fda58441f1cb174592 |
|
BLAKE2b-256 | 8ed08d3dbe2d2080d5df0e3e5fb9c02f9d6f010c4d11c0c38dd2d09e8895c27c |