Skip to main content

Analyzer package for qass_tools

Project description

Analyzer package for Qass Tools

This package contains python modules that can be used to interact with the Analyzer4D software or with the data it produces.

It provides:

  • A parser for the files containing the measurement data by the Analyzer4D
  • An index to query for measurement data
  • A database abstraction for the Analyzer4D
  • Abstractions for modules available in the operator network of the Analyzer4D

Check out the documentation!

Installation

Just install using pypi.

pip install qass-tools-analyzer

Or install as a developer. Having the working directory of your terminal in the repository folder:

pip install -e .

Examples

Read Buffer files

In the example we provide the path to a buffer file to the Buffer class and use the with-statement to open it to read the process number.

from qass.tools.analyzer.buffer_parser import Buffer

buffer_file = "path/to/my/buffer_file"
with Buffer(buffer_file) as buff:
   print(buff.process)
   data = buff.get_data() # this is a numpy array

Query Buffer files

In this example we create an instance of the cache and synchronize it with the directory my/directory. We then create a template BufferMetadata object and use it with the cache to query for all buffers with a compression_frq = 8. You can use all properties that are in BufferMetadata.properties. The BufferMetadataCache.get_matching_buffers() method returns a list of Buffer objects that are in this case sorted by their process number (as specified in the sort_key).

from qass.tools.analyzer.buffer_metadata_cache import BufferMetadataCache as BMC, BufferMetadata as BM, select

cache = BMC()
cache.synchronize_directory("my/directory")

results = cache.get_matching_buffers(query=select(BM).filter(BM.compression_frq==8).order_by(BM.process))

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

qass_tools_analyzer-2.6.2.tar.gz (68.6 kB view details)

Uploaded Source

Built Distribution

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

qass_tools_analyzer-2.6.2-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

Details for the file qass_tools_analyzer-2.6.2.tar.gz.

File metadata

  • Download URL: qass_tools_analyzer-2.6.2.tar.gz
  • Upload date:
  • Size: 68.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for qass_tools_analyzer-2.6.2.tar.gz
Algorithm Hash digest
SHA256 aaaa5c7e4fe3b8d926b30457e45b3753d9b9f4f6db2bf48a5b7b4ab994aad852
MD5 b440cb4bebef1c48a51b1327686c5159
BLAKE2b-256 a6aa0429d00e163aa4e70ff6de2bdae16dbcb4506d25c762980c1386ce0ec21f

See more details on using hashes here.

File details

Details for the file qass_tools_analyzer-2.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for qass_tools_analyzer-2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e07b51943f8e91bc047759459d9db325963a093685defa5ac2f605a760f9bb87
MD5 3c575d87b13256eb6a456fd31a261d49
BLAKE2b-256 055d9ae07c18114c1a240b61515a0518bb9839a8003eb7a814f2b56962650446

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