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.4.tar.gz
(29.2 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.4.tar.gz.
File metadata
- Download URL: shtRipper_cpp-1.2.4.tar.gz
- Upload date:
- Size: 29.2 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 |
2d9d73fa6edcf8fb2839368a44b84b6abc93028d20b9e08d2c036707696874c0
|
|
| MD5 |
13528107ccd0fdf7ad169d725bca99fe
|
|
| BLAKE2b-256 |
c160724bd830b2e6bea8eb8510a792325f177243475083ac286eebd875db1d93
|
File details
Details for the file shtRipper_cpp-1.2.4-py3-none-any.whl.
File metadata
- Download URL: shtRipper_cpp-1.2.4-py3-none-any.whl
- Upload date:
- Size: 30.3 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 |
cfd23914a414b2ea8548f91b1ba2a4d8f93ec2b85a2fc743539f0c3274469f95
|
|
| MD5 |
e2fe4aa1f4a3716b296d5ce8cba621af
|
|
| BLAKE2b-256 |
0a4deb2ad2175329a9c7739a1ac2812e5ec3fcb8bfde1a23e953a5d151ded990
|