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 = {
'central Te': {
'comment': 'Температура в центре',
'unit': 'T_e(eV)',
'x': [0.0, 1.2, 1.9],
'y': [0, 1, 3.16]
'err': [0.1, 0.1, 0.5]
},
'signal 2': {
'comment': 'Температура в центре',
'unit': 'n_e(m^-3)',
'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.8.tar.gz
(29.2 kB
view hashes)
Built Distribution
Close
Hashes for shtRipper_cpp-1.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6af9c0c1346dafff22fd1f6945791139b195c7b096ed633b010704540985e90 |
|
MD5 | 1ea277f5fd4ad81ac40f2b10f77fe670 |
|
BLAKE2b-256 | 95114c4197421ce0ddc6f926b3c2dbd4075ddef0e5e5ab8c77dda4f5f86dc5e4 |