-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plotting): concatenate plots in a subfigure layout (#21)
* feat(combine): create class that combines subfigures * refactor(py3.8): make it compatible with python3.8+ Since the project assumes python >=3.8, and 3.8 is also the lowest supported version now that 3.12 is out, this class shouldn't use python >=3.11 features. https://devguide.python.org/versions/ * tests(combine): write tests and use pathlib for all paths * test(github): run tests in github action * fix(combine): allow simultaneous calls to combine class from parallel python runtimes * docs(README): add usage section * chore(concat): add download link and shorten docstring header * feat(combine): support any file type also supported by Imagemagick * chore(combine): warn about vector formats and test against jpg * docs(combine): add imagemagick note on vector images * chore(combine): resolve merge conflict
- Loading branch information
Showing
8 changed files
with
947 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Tests | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
# timeout-minutes: 460 | ||
name: ${{ matrix.python-version }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest # Haven't figured out how ImageMagick should be installed on win32 yet | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
poetry --version | ||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.