Skip to main content

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


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.5.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shtRipper_cpp-1.2.5-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file shtRipper_cpp-1.2.5.tar.gz.

File metadata

  • Download URL: shtRipper_cpp-1.2.5.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

Hashes for shtRipper_cpp-1.2.5.tar.gz
Algorithm Hash digest
SHA256 1a3c0805f7c29802b1a4f7ff5d6c5d7dd04e8b53e47c0c84143081ae45ed2f43
MD5 d71d5349757fd26d5eebcd97d41a0a4d
BLAKE2b-256 49e43ce3df1b9c36e1260857ee0fdff9a5b6871f50e14fc14338b4b4f0adb44d

See more details on using hashes here.

File details

Details for the file shtRipper_cpp-1.2.5-py3-none-any.whl.

File metadata

  • Download URL: shtRipper_cpp-1.2.5-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

Hashes for shtRipper_cpp-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b4d81e8e51702d15867606bfdae98964f10e5d4840e11b23f5944294a18a8319
MD5 ca24e6327bc2f60ab48df86624225a9f
BLAKE2b-256 b9fd8b27c90b77138bc92f8d1250eca77146f4e4effb1483e31d50703fded85b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page