aareproc (0.1.2)
Published 2025-07-02 16:16:38 +02:00 by leonarski_f
Installation
pip install --index-url aareproc
About this package
HPC data processing pipeline (AareProc) for Swiss Light Source (SLS) 2.0 PXI, PXII, PXIII
AareProc
Description
Data processing pipeline that interacts with AareDB and process data for MX beamlines at SLS 2.0.
Current Features
db_slurm_handler
: communicate with AareDB on SLURM job submission status (to be tested), now can be used on bothra
andmx-x06da-queue-01
. The script figures out what machine it is on and submits jobs accordingly. For db communication to be working, onlyra-c-094
is working so need to run thedb_slurm_handler
here. It runs currently (since 2025-06-18) in a tmux session onmx-x06da-queue-01
.- On
mx-x06da-queue-01
, activate the virtual env in AareProc folder bysource sourceme
- Default
pipeline
(when runpython db_slurm_handler.py
):inp_writer
write XDS.INP according to the AareDB parameters. Default path is insls/mx/data/<pgroup>/work/pytest/<job_id>_<sample_id>
- run
xds
- download/find .pdb [Currently only with lyso pdb ]
phenix.xtriage
&pointless
- [Disabled] reindex with
pointless
output (optional) - dimple
extract_results
and feedback to database (to be determined)
- Manual test and processing (used interactive python):
- in
src/aareproc
start a python session by typingpython
- in the interactive python session:
import db_slurm_handler
db_slurm_handler.path_test()
- You can edit the function in
get_mock_param_for_filepath()
ininp_writer.py
if needed. Then restart the python session and repeat step 1 and 2.
- in
- log with customized log_config (with options
print
andloguru
) cloud_handler
: upload raw data to DECTRIS Cloud, potentially set up experiment
Installation
To install the package using pip, run the following command:
pip install --index-url https://gitea.psi.ch/api/packages/mx/pypi/simple/ aareproc
Usage
Activate environment at the folder with uv.lock
with source .venv/bin/activate
For the database communication to work, need to export the shared password in the current shell.
Contributing
Jiaxin (Dawn) Duan
Authors and acknowledgment
- Filip Leonarski (Advisor)
- Guillaume Gotthard (AareDB)
License
To be determined
Project status
In initial development
Requirements
Requires Python: >=3.10
Details
2025-07-02 16:16:38 +02:00
Assets (2)
Versions (8)
View all
PyPI
0
78 KiB
aareproc-0.1.2.tar.gz
36 KiB