Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add small test data #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ build_artifacts
# conda smithy ci-skeleton end
cmake_build
src/version.h
test_data/GPUdecon/
test_data/otf.tif
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,24 @@ The binary will be written to `cudaDecon\build\<platform>-<compiler>-release`.
If you change the source code, you can just rerun `ninja` or `make` and the
binary will be updated.

### Testing

There is some test data included in test_data. You can use it to test the binaries
created in the previous step. For example, if you are on windows and followed the steps
above, your binary will be in `cudaDecon\build\windows-msvc-release\cudaDecon.exe`.

First build an otf:

```sh
.\build\windows-msvc-release\radialft.exe .\test_data\psf.tif .\test_data\otf.tif --nocleanup --fixorigin 10
```

Then run the deconvolution:

```sh
.\build\windows-msvc-release\cudaDecon.exe -z 0.3 -i 10 -D 31.5 .\test_data\ im_raw .\test_data\otf.tif
```

-----------------------

## Developer Notes
Expand Down Expand Up @@ -169,3 +187,4 @@ to 10 : `reg.exe ADD
with NVIDIAsmi.exe -L from an administrator cmd window to show the GPUs, then
NVIDIAsmi.exe -dm 1 -i 0 to set TCC on GPU 0. Then use `set
CUDA_VISIBLE_DEVICES` to pick the GPU the deconv code should execute on.

Binary file added test_data/im_raw.tif
Binary file not shown.
Binary file added test_data/psf.tif
Binary file not shown.