Skip to content
Snippets Groups Projects
Commit d6f7f066 authored by ac (tb)'s avatar ac (tb)
Browse files

leversc python packaging

parent 59efcc0e
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ Note: The Windows install will generate a security warning because the App is no
**Note:** If using Fiji (**highly recommended**) then you may wish to create the ```3D``` subfolder in ```plugins``` and place the jar file within, as it can make it easier to find. Alternatively, the jar file can be placed directly in the ```plugins``` folder and will be listed in the Fiji menu as ```Plugins->Leversc Viewer```.
### Python Module – requires >= Python 3.6
### Python Module – requires Python 3.6 or later
1. Download the [Python module](src/Python) directory (Select the download icon and choose ```Download this directory```).
2. Extract the downloaded Python folder to a convenient location.
3. Add the folder to your ```PYTHONPATH``` environment variable so that ```import leversc``` statements can automatically find the LEVERSC module
......@@ -63,7 +63,7 @@ Note: The Windows install will generate a security warning because the App is no
Verify install:
```
>>> from leversc.test_random import test_random
>>> import leversc
>>> test_random()
```
#### with source code
......
__all__ = ["leversc", "_readImage", "_property"]
from leversc._readImage import readImage
from leversc.leversc import leversc
from leversc.test_random import test_random
......@@ -371,8 +371,8 @@ class leversc:
return None
return ljs_m.get_ljspath()
from _readImage import readImage
from _property import setProperty,getProperty
from leversc._readImage import readImage
from leversc._property import setProperty,getProperty
@property
def viewParams(self):
return self.getProperty('viewParams')
......
......@@ -2,7 +2,7 @@
# from leversc.test_random import test_random
def test_random():
import numpy as np
from leversc import leversc
import leversc
imRandom = np.random.random_sample((256,256,256))
# Set up the image metadata: such as physical voxel size, and channel names
......@@ -11,4 +11,7 @@ def test_random():
"ChannelNames": ["random_sample"]}
# Send data to the LEVERSC viewer
leversc.leversc(im=imRandom, imD=imD)
pass
\ No newline at end of file
pass
if __name__=="__main__":
test_random()
\ No newline at end of file
building leversc for python
update setup.cfg with version
python -m build
twine upload dist/*
pip install --upgrade leversc
[metadata]
name = leversc
version = 22.1.19
version = 22.1.261
author = Andrew R. Cohen & Mark Winter
author_email = andrew.r.cohen@drexel.edu
description = 4-D scriptable visualization
......@@ -20,4 +20,5 @@ install_requires =
h5py
imageio
requests
scikit-image
\ No newline at end of file
scikit-image
pooch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment