A parallel processing library for pyasdf.
Project description
Asdfy
A library to process ASDFDataSet(s) from pyasdf.
Prerequisites
pyasdf
mpi4py
Installation
pip install asdfy
Usage
Basic usage
from asdfy import ASDFProcessor
ASDFProcessor('input.h5', 'output.h5', process_func).run()
Defailed explination
TBD. Refer to tests/main.py
for now. To run tests:
cd tests
mpi4un -n 4 python main.py
ASDFProcessor
src
Union[str, Iterable[str]]
Path to input ASDFDataSet(s)
dst
str
Path to output ASDFDataSet
func
Callable[..., ASDFOutput]
Processing function, each argument correspond to an input dataset.
input_type
Literal['stream', 'trace', 'auxiliary', 'auxiliary_group'] = 'trace'
Type of input data
input_tag
Optional[str] = None
Input waveform tag or auxiliary group, None for using the first available
output_tag
Optional[str] = None
Output waveform tag or auxiliary group, None for using input_tag or input_type
accessor
bool = False
Pass the origional accessor to the processing function. Set to .True. if you need event or station info.
onerror
Optional[Callable[[Exception], None]] = None
Callback when error occurs
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
Built Distribution
File details
Details for the file asdfy-0.1.18.tar.gz
.
File metadata
- Download URL: asdfy-0.1.18.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7fba1dbc427274f895c0a9ec02dc90ed08543648e04ead38b5a665ae4e9ad8a |
|
MD5 | c8b6b833abd00d190700383915617830 |
|
BLAKE2b-256 | ab954f5570f23cd9ba7223f153d6eabffcd0315818a15e22ecad8cd8a4b33946 |
File details
Details for the file asdfy-0.1.18-py3-none-any.whl
.
File metadata
- Download URL: asdfy-0.1.18-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5424d06d4948bebcb9f6e827b5972b3d18eb7c79809dfd885402f29663bff392 |
|
MD5 | cb2599e2652641960aa660506e8f8469 |
|
BLAKE2b-256 | df42e2cf4b5f0ac0c430da3403eeaa6ec0556f019b242ca03553ba02e3b2ef52 |