1- # PETSIRD template for use cases
1+ # PETSIRD template for C++ use cases
22
33The purpose of this repo is to provide a starting point for developing software that uses PETSIRD.
4- It is currently mostly needed/useful for C++ development, but is also useful for Python developers
5- who want to experiment with development of PETSIRD itself.
4+ It is currently mostly needed/useful for C++ development.
65
76## Background
87The [ Emission Tomography Standardization Initiative (ETSI)] ( https://etsinitiative.org/ )
@@ -18,7 +17,14 @@ These instructions will use `YourRepoName` for the name of your new repository.
1817Easiest is to start from GitHub:
19181 . Navigate to the URL of this repo: https://github.com/ETSInitiative/PETSIRDUseCaseTemplate
20192 . Click on the ` Use this template ` button and create your own repo
21- 3 . Pull it to your own local machine and modify
20+
21+ ### Using your repo
22+
23+ 1 . Open *** your*** repo in [ GitHub Codespaces] ( https://code.visualstudio.com/docs/remote/codespaces ) or
24+ in a [ VS Code devcontainer] ( https://code.visualstudio.com/docs/devcontainers/containers ) .
25+ This codespace/container will contain all necessary tools, including ` yardl ` itself, as well as your repository.<br >
26+ (Alternatively, clone to your local computer with ` git clone --recurse-submodules <repository_url> ` , download ` yardl ` , install dependencies etc.)
27+ 2 . Start with basic house-keeping
2228 1 . Search-and-replace all occurences of ` PETSIRDUseCaseTemplate ` with ` YourRepoName `
2329 2 . Update the README.md to remove references to this template and write something about what your repo is going to do
2430 3 . Update the ` environment.yml ` to include what you need. For instance, if you need ROOT, add something like ` - root=6.28.0 `
@@ -27,19 +33,17 @@ Easiest is to start from GitHub:
2733 git commit -a -m " Updated template to YourRepoName"
2834 git push
2935 ```
30-
31- # ## Using your repo
32-
33- 1. Open *** your*** repo in [GitHub Codespaces](https://code.visualstudio.com/docs/remote/codespaces) or
34- in a [VS Code devcontainer](https://code.visualstudio.com/docs/devcontainers/containers).
35- This codespace/container will contain all necessary tools, including ` yardl` itself, as well as your repository.
36- 2. Use ` yardl` to generate C++ and Python code for the model:
37- ` ` ` sh
38- cd YourRepoName
39- cd PETSIRD/model
40- yardl generate
41- cd ../..
42- ` ` `
43- 3. Start working in either the [` cpp` ](cpp/README.md) and/or [` python` ](python/README.md) directories.
36+ 3. Start working in the [` cpp` ](cpp/README.md) directory.
37+ 4. Edit the [` justfile` ](justfile), e.g. to add a ` @run` target
38+ 5. type ` just build` (or ` just run` )
39+
40+ Note: if you don' t want to use `just`, you will have to use `yardl` to generate C++ and Python
41+ code for the model:
42+ ```sh
43+ cd YourRepoName
44+ cd PETSIRD/model
45+ yardl generate
46+ cd ../..
47+ ```
4448
4549
0 commit comments