SkopeDataReader
Python reader to load data acquired with skope-fx
CONSTRUCTOR
scan = DataReader(folder, scanNr)
IN
folder: path of the folder containing the scan data files
scanNr: scan number
OUT
obj scan object holding scan definition
FUNCTIONS
getData(self, datatype, samples=[], channels=[], interleaves=[], dynamics=[])
IN
datatype: string (Type names are defined by the Acq System output file extensions: 'raw', 'phase', 'k', 'kspha', 'kcoco', 'Bfit', 'Gfit')
samples: numpy array of requested samples.
channels: numpy array of requested channels. Relative to acquired channels!
interleaves: numpy array of requested interleaves.
dynamics: numpy array of requested dynamics.
for samples, channels, interleaves, and dynamics: If not present or empty all acquired data is returned
OUT
data: size = [samples, channels, interleaves, dynamics]
getTriggerTimeData(self)
OUT
trigTimes: for versions <= 2022: np array with trigger times
for versions >= 2023: dict with 'triggerTimes' and 'flags'
filterData(self, data, frequencyKHz=50)
Note: this is a preliminary implementation for phase and k data only!
IN
data: data obtained by getData that will be filtered
frequencyKHz: cut off frequency for low pass filtering
OUT
data: filtered data
EXAMPLE USAGE
import SkopeDataReader
import numpy as np
from matplotlib import pyplot as plt
# set scan path & nr
dataPath = 'My\Data\Path'
scanNr = 1
# Initialize DataReader
scan = SkopeDataReader.DataReader(dataPath, scanNr)
# Load and print trigger times
triggerTime = scan.getTriggerTimeData()
print(triggerTime)
# Load and plot raw data
rawData = scan.getData('raw')
fig, ax = plt.subplots()
ax.plot(abs(rawData[:,:,0,0]))
plt.show()
# Load, filter and plot kspha data
kData = scan.getData('kspha', samples=np.arange(10000))
kData = scan.filterData(kData, frequencyKHz=50)
fig, ax = plt.subplots()
ax.plot(kData[:,:,0,0])
plt.show()
# Load and plot Bfit data
BData = scan.getData('Bfit')
fig, ax = plt.subplots()
ax.plot(BData[0,:,0,:].transpose(), '.-')
plt.show()
Metadata
Release files for SkopeDataReader 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skopedatareader-1.3.1.tar.gz | 6.5 kB | Without provenance | Details for skopedatareader-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skopedatareader-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for skopedatareader-1.3.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / skopedatareader-1.3.1.tar.gz
| Download URL | skopedatareader-1.3.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c52b1dc9482153bd05014240866a650381d23947610ee54f5c1b01b418fe4a31
|
|
BLAKE2b-256 checksum How to use checksums |
32a9efd8ea68c225e41c79a416bdb40541fbcd5a8d4da8c1a645073be8871657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / skopedatareader-1.3.1-py3-none-any.whl
| Download URL | skopedatareader-1.3.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af65feaea9eee763a7c4ca483fe43e1e966b05e9dab2ea0fa3f2d9b8640e79e2
|
|
BLAKE2b-256 checksum How to use checksums |
a3d67140ad82b82e9cfd98660f95650496c1f7443aa876d4f6301e8843276a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for SkopeDataReader 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.