Skip to content

Commit

Permalink
build: move example image to docs directory and improve benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Jun 20, 2022
1 parent 4315a22 commit 9bcc61b
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 304 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
dev_*.py
.chglog/
project_*.py
*.npz

# setuptools_scm version file
# Use this if the project uses pyproject.toml with setuptools_scm instead of setup.py
Expand Down
254 changes: 0 additions & 254 deletions .social/benchmark.py

This file was deleted.

Binary file removed .social/benchmark_memory.png
Binary file not shown.
Binary file removed .social/benchmark_time.png
Binary file not shown.
45 changes: 0 additions & 45 deletions .social/examples.py

This file was deleted.

Binary file removed .social/header.png
Binary file not shown.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ plt.show()


<p align="center">
<img src="https://raw.githubusercontent.com/dylanljones/lattpy/master/.social/example_square_periodic.png" width="400">
<img src="https://raw.githubusercontent.com/dylanljones/lattpy/dev/docs/source/_static/example_square_periodic.png" width="400">
</p>

### General lattice attributes
Expand Down Expand Up @@ -254,16 +254,16 @@ and the size of the stored lattice data of a square lattice for different number
sites are shown in the following plots:


| Build time | Build memory |
|:--------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------:|
| <img src="https://raw.githubusercontent.com/dylanljones/lattpy/master/.social/benchmark_time.png"> | <img src="https://raw.githubusercontent.com/dylanljones/lattpy/master/.social/benchmark_memory.png"> |
| Build time | Build memory |
|:-------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|
| <img src="https://raw.githubusercontent.com/dylanljones/lattpy/master/benchmarks/bench_build_time.png"> | <img src="https://raw.githubusercontent.com/dylanljones/lattpy/master/benchmarks/bench_build_memory.png"> |



Note that the overhead of the multi-thread neighbor search results in a slight
increase of the build time for small systems. By using `num_jobs=1` in the `build`-method
this overhead can be eliminated for small systems. By passing `num_jobs=-1` all cores
of the system is used.
of the system are used.


## 💻 Development
Expand Down
Loading

0 comments on commit 9bcc61b

Please sign in to comment.