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.7.tar.gz
(29.3 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.7.tar.gz.
File metadata
- Download URL: shtRipper_cpp-1.2.7.tar.gz
- Upload date:
- Size: 29.3 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 |
cd8529df9d8be896430506ed8a269483e32a616393f7baa111b59290cb71b16e
|
|
| MD5 |
5f14cbc845b957f17422688a5c48fe29
|
|
| BLAKE2b-256 |
3173f10d03e6a0bb874fd394459621a9ec547053ee9998bc565caae26612cdb6
|
File details
Details for the file shtRipper_cpp-1.2.7-py3-none-any.whl.
File metadata
- Download URL: shtRipper_cpp-1.2.7-py3-none-any.whl
- Upload date:
- Size: 30.4 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 |
e55d8fd2b845183380fa1b138eb665867d9a6ec21760f77d064a642d18e30482
|
|
| MD5 |
1e699f0ea210b0519909f5484d4afe96
|
|
| BLAKE2b-256 |
34b6503feba67214dc09e85e56c0caa5b5e882581fe2b8dc39ecf80c1db83034
|