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.3.tar.gz (68.5 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.3-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qass_tools_analyzer-2.6.3.tar.gz
  • Upload date:
  • Size: 68.5 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.3.tar.gz
Algorithm Hash digest
SHA256 bb4aa30089b5fa42c1f7bba4b96ead84a7944711a175c8b98ec15505b0550677
MD5 0e7163544e99f1f78ef58945f14ab5d2
BLAKE2b-256 e9b9cd16c3cada4103fe858d7b23f92f02bfcbb32062a14d2b931bfed7571b5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qass_tools_analyzer-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 106aa8acf7fc73f88225c0ff0779e88f91c1aef6a6c51e77a9980a3829ba1ced
MD5 41941af3c08aec856909c7d2bf7a8103
BLAKE2b-256 ebb05e9e8dacb68754b462b20586d392bd4602813c1fb927adba52376c633bc6

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