Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ttk
radioSphere
Commits
abc2b2fb
Commit
abc2b2fb
authored
Oct 28, 2021
by
Benjy Marks
Browse files
adding conda meta.yaml file
parent
f2d2242a
Pipeline
#78492
passed with stage
in 1 minute and 41 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
abc2b2fb
...
...
@@ -21,6 +21,7 @@ pages:
-
pip3 install -U -r requirements.txt
-
python3 setup.py install
-
sphinx-build -b html docs/source public
# - conda build .
# - tar --exclude='.[^/]*' -czvf public/radioSphere.tar.gz .
artifacts
:
...
...
recipes/meta.yaml
0 → 100644
View file @
abc2b2fb
{
%
set name = "radioSphere" %
}
{
%
set data = load_setup_py_data(setup_file='../setup.py') %
}
package
:
name
:
{{
name|lower
}}
version
:
1.0.0
# {{ data.get('version') }}
source
:
# url: ./../dist/{{ name }}-1.0.0.tar.gz # for local testing
url
:
https://gricad-gitlab.univ-grenoble-alpes.fr/ttk/radioSphere/-/archive/version-1.0.0/radioSphere-version-1.0.0.tar.gz
build
:
number
:
0
script
:
{{
PYTHON
}}
setup.py install . -vv
requirements
:
build
:
-
{{
compiler('cxx')
}}
host
:
-
python
-
pip
-
eigen
-
llvm-openmp
-
matplotlib
-
numpy x.x
-
python
-
scipy
-
cython
# to build the C++ projector for now
-
tifffile
# - opencv-python
-
pytest
run
:
-
matplotlib
-
numpy x.x
-
scipy
-
ipython
-
tifffile
-
pytest
# test:
# imports:
# - radiosphere
# - radiosphere.tests
about
:
home
:
"
https://ttk.gricad-gitlab.univ-grenoble-alpes.fr/ttk/radioSphere"
license
:
GPL-3.0+
license_family
:
GPL
license_file
:
LICENSE
summary
:
"
Single-projection
reconstruction
technique
for
positioning
monodisperse
spheres
in
3D
with
a
divergent
x-ray
beam"
doc_url
:
https://ttk.gricad-pages.univ-grenoble-alpes.fr/radioSphere/
extra
:
recipe-maintainers
:
-
ostamati
-
benjym
-
edwardando
setup.py
View file @
abc2b2fb
...
...
@@ -7,11 +7,17 @@ import os
import
sysconfig
name
=
"radioSphere"
version
=
'
1.0.0
'
version
=
"
1.0.0
"
modules
=
[
"DEM"
]
packages
=
[
"radioSphere"
,
"radioSphere.DEM"
]
# os.environ["clang"] = "g++-11"
if
os
.
getenv
(
'PREFIX'
)
!=
None
:
# if we are compiling with conda
EIGEN_LOC
=
os
.
getenv
(
'PREFIX'
)
else
:
EIGEN_LOC
=
"/opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3/"
# on benjy's macbook pro installed with brew, this is so very very brittle
def
readConf
(
fileName
,
comments
=
[
"#"
]):
"""
Reads a configuration files.
...
...
@@ -41,9 +47,7 @@ setup(
sources
=
[
"tools/projectSphereC3.cython/_projectSphereC.pyx"
,
"tools/projectSphereC3.cython/projectSphereC.cpp"
],
include_dirs
=
[
numpy
.
get_include
()],
# extra_compile_args=['-fopenmp','-I/usr/local/include/eigen3'],
extra_compile_args
=
[
'-I/usr/local/include/eigen3'
,
'-I/usr/include/eigen3'
],
# extra_compile_args=['-fopenmp','-I/usr/include/eigen3'],
extra_compile_args
=
[
'-fopenmp'
,
'-I/usr/local/include/eigen3'
,
'-I/usr/include/eigen3'
,
'-I'
+
EIGEN_LOC
+
'/include/eigen3'
],
# extra_link_args=['-fopenmp'],
language
=
'c++'
)],
test_suite
=
"tests"
,
...
...
tools/detectSpheres.py
View file @
abc2b2fb
...
...
@@ -4,7 +4,7 @@ Implementation of tomopack by Stéphane Roux
import
os
import
numpy
import
radioSphere.
projectSphere
import
projectSphere
import
scipy.ndimage
from
scipy.spatial
import
distance
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment