-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from dkazanc/tomophantom3
tomophantom version 3
- Loading branch information
Showing
182 changed files
with
9,951 additions
and
36,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: tomohantom_conda_upload | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-20.04 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "master" | ||
fetch-depth: 0 | ||
|
||
# setup Python 3.9 | ||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies with Conda | ||
run: | | ||
$CONDA/bin/conda install -c conda-forge conda-build anaconda-client | ||
$CONDA/bin/conda update conda | ||
$CONDA/bin/conda update conda-build | ||
$CONDA/bin/conda list | ||
- name: Decrypt a secret | ||
run: ./.scripts/decrypt_secret.sh | ||
env: | ||
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} | ||
|
||
- name: Upload the tested package to conda cloud | ||
run: | | ||
chmod +x ./.scripts/conda_upload.sh | ||
./.scripts/conda_upload.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
PKG_NAME=tomophantom | ||
USER=httomo-team | ||
OS=noarch | ||
CONDA_TOKEN=$(cat $HOME/.secrets/my_secret.json) | ||
|
||
mkdir ~/conda-bld | ||
conda config --set anaconda_upload no | ||
export CONDA_BLD_PATH=~/conda-bld | ||
|
||
export CIL_VERSION=3.0 | ||
$CONDA/bin/conda build conda-recipe . -c httomo | ||
|
||
# upload packages to conda | ||
find $CONDA_BLD_PATH/$OS -name *.tar.bz2 | while read file | ||
do | ||
echo $file | ||
$CONDA/bin/anaconda -v --show-traceback --token $CONDA_TOKEN upload $file --force | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# Decrypt the file | ||
mkdir $HOME/.secrets | ||
# --batch to prevent interactive command | ||
# --yes to assume "yes" for questions | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" \ | ||
--output $HOME/.secrets/my_secret.json ./.scripts/my_secret.json.gpg |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,11 @@ | ||
# ChangeLog | ||
|
||
## v1.4.9 | ||
* Artifacts function syntax has changed. Now the dictionaries with keys can be be provided in a random order. Demos updated to make use of the updated function | ||
* Partial volume effect generator added to the Artifacts script | ||
* Fresnel propagator simulator added to the Artifacts script | ||
|
||
## v1.4.7 | ||
* Flat field simulator has been modified to be based on a speckle generator of the background | ||
* Flat fields and the background jitter has been incorporated | ||
* Model 17 has been added to simulate i23 data | ||
|
||
## v1.4.5 | ||
* Flat field simulation for 3D case has been re-written to conform the traditional imaging scenario. One can modify the | ||
inensity of the X-ray source which leads to more imaging artefacts | ||
* Demo ReconASTRA3D_realistic shows the incorporated changes | ||
* normraw function has been deleted and replaced with the conventional normaliser from the ToMoBAR software | ||
|
||
## v1.4.3 | ||
* Artifacts simulation module has been modified. It is based now on specifying the dictionaries where artifact types are | ||
described. Stipes can be simulated to be partial and with variable intensity. | ||
* 2D Model 15 added - DLS phantom | ||
|
||
|
||
## v1.4.2 | ||
* Jupiter Notebook demo added which uses deep learning algorithms to employ TomoPhantom for data generation | ||
|
||
## v1.4.1 | ||
* All demos renamed and placed into categories: 2D/3D/4D, Random | ||
* Random generation of 2D/3D phantoms is initiated using methods from "generator.py" script | ||
* Foam phantoms can be built | ||
* Demo 'RandPhantGen.py' shows how phantoms can be generated | ||
|
||
## v1.4 | ||
|
||
* Artifacts generation have been re-written from the class-based structure to function based structure | ||
* Each method in Artifacts can be called independently or all artefacts+noise can be simulated using _Artifacts_ method | ||
* Seeding added for noise module | ||
* Demos changed to adapt new artefacts functions and ToMoBAR changes | ||
|
||
## v1.3 | ||
|
||
* Objects3D (generation of the customised objects) function is fixed | ||
## v3.0 (2023.12) | ||
* Project reorganised into two parts: a library that is build as a shared object using Cmake and Ctypes bindings and pure Python part that can be | ||
installed separately. | ||
* In general, ver.3.* should be fully compatabile to ver2.*, however, please note that paths for some functions have been changed. For instance, | ||
```python | ||
from tomophantom.artefacts import artefacts_mix | ||
``` | ||
* Documentation is now available, please check all API for TomoPhantom. | ||
* Demos were updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.