mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
removed readme for python folder
This commit is contained in:
@ -1,63 +0,0 @@
|
|||||||
# sls_detector: Python interface to slsDetectorPackage
|
|
||||||
Python interface to the Sls Detector Software.
|
|
||||||
|
|
||||||
### Documentation ###
|
|
||||||
Sphinx built documentation is available here:
|
|
||||||
[https://slsdetectorgroup.github.io/sls_detector/](https://slsdetectorgroup.github.io/sls_detector/)
|
|
||||||
|
|
||||||
|
|
||||||
### Install using conda ###
|
|
||||||
|
|
||||||
Binaries are available using conda. This installs both the detector software and the Python
|
|
||||||
interface.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
#Add conda channels
|
|
||||||
conda config --add channels conda-forge
|
|
||||||
conda config --add channels slsdetectorgroup
|
|
||||||
|
|
||||||
#Install latest version
|
|
||||||
conda install sls_detector
|
|
||||||
|
|
||||||
#Install specific version
|
|
||||||
conda install sls_detector=3.0.1
|
|
||||||
|
|
||||||
#Scientific Linux 6 version (GLIBC2.12)
|
|
||||||
conda install sls_detector=SL6_3.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
### Building using conda-build ###
|
|
||||||
|
|
||||||
Needs [sls_detector_software](https://github.com/slsdetectorgroup/sls_detector_software) installed.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
#Clone source code
|
|
||||||
git clone https://github.com/slsdetectorgroup/sls_detector.git
|
|
||||||
|
|
||||||
#Checkout the branch needed
|
|
||||||
git checkout 3.0.1
|
|
||||||
|
|
||||||
#Build and install the local version
|
|
||||||
conda-build sls_detector
|
|
||||||
conda install --use-local sls_detector
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
### Developer build ###
|
|
||||||
|
|
||||||
IF you if you are developing and are making constant changes to the code it's a bit cumbersome
|
|
||||||
to build with conda and install. Then an easier way is to build the C/C++ parts in the package
|
|
||||||
directory and temporary add this to the path
|
|
||||||
|
|
||||||
```bash
|
|
||||||
#in path/to/sls_detector
|
|
||||||
python setup.py build_ext --inplace
|
|
||||||
```
|
|
||||||
Then in your Python script
|
|
||||||
```python
|
|
||||||
|
|
||||||
import sys
|
|
||||||
sys.path.append('/path/to/sls_detector')
|
|
||||||
from sls_detector import Detector
|
|
||||||
```
|
|
||||||
|
|
Reference in New Issue
Block a user