No project description provided
Project description
dls_marco_score_ispby ia a script which runs the marco scoring tool for images passed to it in a list and writes the scores into ispyb database using ispby API.
There are two requirements for it tow work:
the connection to the database has to be established
the images for which the scoring is calculate need to be added to the database table called ispyb.BLSampleImage.
See comments in ticket VMXI-488 for more details.
Once the local database connection is established and the images added to the database the script can be used as follows:
import dls_marco_score_ispyb.score as ms
crystal_images = [‘imgae1’, ‘image2’]
ms.run(crystal_images)
Features
Run function takes up to 3 parameters. The first one is the list of image names (absolute path) and is an obligatory parameter. The second is the path to the ispyb config file (ispyb_config_path), this is a optional parameter with the default path to the local host (DEFAULT_ISPYB_CONFIG=dls_marco_score_ispby/config.conf) The third parameter is the path to the marco model, this is also an optional parameter, the default value is the path to the model packaged up with the module (DEFAULT_MODEL_DIR=dls_marco_score_ispby/savedmodel).
Installation
In order to install dls_marco_score_ispyb it do:
pip install dls_marco_score_ispyb
Note one of the modules used by dls_marco_score_ispyb - tensorflow - is a bit picky in terms of the version of pip used to install it. Make sure you have the latest version of pip installed.
Contribute
The source code of dls_marco_score_ispyb is on gitlab - Source Code: https://gitlab.diamond.ac.uk/controls/python3/dls_marco_score_ispyb
Support
If you are having issues, please contact Urszula Neuman at urszula.neuman@diamond.ac.uk
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
Hashes for dls_marco_score_ispyb-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e990036e64f8696e2249cb7d2579b4d3a2010f9aefc1d4721336b016e2881571 |
|
MD5 | 23b5e118a416f0c563d5b09a203e2bf6 |
|
BLAKE2b-256 | ec1b54d2361346bd469c37f8f418ff1082b7615f1473758926ef083d7ff5500b |
Hashes for dls_marco_score_ispyb-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4484e1ed251793d0fb1ef229630151d11baf1a90eaa72fd6dc1cc9e09097a5e8 |
|
MD5 | b773cde52c13ce95181a90b5c6c81589 |
|
BLAKE2b-256 | efdec9eb5953c9aac099793bb916518eced298c322d526cd8f5f0d2da7cad149 |