Skip to content

Latest commit

 

History

History
196 lines (136 loc) · 4.4 KB

DEVELOPMENT.md

File metadata and controls

196 lines (136 loc) · 4.4 KB

wsianon Development Notes

Building Python Package

New module code written in src/wsianon directory.

Syncing C library from remote

git clone -b macos-support https://github.com/luciorq/wsi-anon ./temp/;
rm -rf ./include/*;
cp -r temp/src/* ./include/;
cp temp/LICENSE ./include/;
rm -rf ./temp;

Test data

Test data is acquired from the Openslide project.



Adding features to Upstream project on GitLab

Adding suport for MacOS in the Upstream EMPAIA WSI Anon project on GitLab.

Fork to https://gitlab.com/luciorq/wsi-anon

git clone https://gitlab.com/luciorq/wsi-anon ~/projects/forks/wsi-anon;
cd ~/projects/forks/wsi-anon;
git branch;
git checkout -b <BRANCH_NAME>;

Make necessary edits to the branch.

Check if everything is working with make.

make

Commit and push.

git add -p <FILES_TO_ADD>
git commit -m "...";

git push origin <BRANCH_NAME>

This will push the changes to your personal fork, you still need to create the Pull Request in the original repository.

Testing WSI Anon Python Wrapper

conda create -n wsi-anon-env -c conda-forge -c bioconda openslide python pytest tiffslide openslide-python


cp bin/libwsianon.dylib ./
conda run -n wsi-anon-env python -m pytest ./wrapper/python/test

Add additional remote on GitHub

git remote -v;
git remote add origin-gh https://github.com/luciorq/wsi-anon;
git remote -v;
git push origin-gh --all;

gh repo view --web;