Skip to content

Commit

Permalink
Add benchmark.py and improve pybind class
Browse files Browse the repository at this point in the history
- use double quote only
- convert relative imports to absolute
  • Loading branch information
4ment committed Jan 31, 2024
1 parent ead4b21 commit 2216fc0
Show file tree
Hide file tree
Showing 17 changed files with 725 additions and 293 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ C++ functionality to Python.
To build physher from source you can run
```bash
git clone https://github.com/4ment/physher
cmake -S . -B physher/build -DBUILD_CPP_WRAPPER=on -DBUILD_TESTING=on
cmake -S physher/ -B physher/build -DBUILD_CPP_WRAPPER=on -DBUILD_TESTING=on
cmake --build physher/build/ --target install
```

Expand All @@ -45,22 +45,16 @@ ctest --test-dir physher/build/


### Installation
To build torchtree-physher from source you can run
To build `torchtree-physher` from source you can run
```bash
git clone https://github.com/4ment/torchtree-physher
pip install torchtree-physher/
```

### Check install

```bash
torchtree --help
```

or

If the installation was successful, this command should print the version of the `torchtree_physher` library
```bash
python -c "import torchtree_physher"
python -c "import torchtree_physher;print(torchtree_physher.__version__)"
```

## Command line arguments
Expand All @@ -74,6 +68,8 @@ torchtree-cli advi --help
include Jacobian of the node height transform in the node height gradient
--physher_disable_sse
disable SSE in physher
--physher_disable_coalescent
disable coalescent calculation by physher
--physher_site {weibull,gamma}
distribution for rate heterogeneity across sites
```
Expand Down
Loading

0 comments on commit 2216fc0

Please sign in to comment.