Skip to content

Commit 0880964

Browse files
authored
Merge pull request #112 from haniffalab/dev
Create release 0.4.0
2 parents 618539e + 6ba4a5c commit 0880964

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2349
-1368
lines changed

.github/workflows/sphinx-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v2
17-
- name: Set up Python 3.8
17+
- name: Set up Python 3.10
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.8
20+
python-version: '3.10'
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install -r ./docker/requirements.txt
24+
pip install -r ./envs/requirements.txt
2525
pip install sphinx sphinx-rtd-theme
2626
- name: Sphinx Build
2727
working-directory: ./sphinx

.github/workflows/tests-python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
sudo apt-get install -y --no-install-recommends libvips
1818
- name: Checkout
1919
uses: actions/checkout@v2
20-
- name: Set up Python 3.8
20+
- name: Set up Python 3.10
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.8
23+
python-version: '3.10'
2424
- name: Clone ome-zarr-metadata
2525
uses: actions/checkout@v2
2626
with:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install -r ./docker/requirements.txt
33+
pip install -r ./envs/requirements.txt
3434
cd ./ome-zarr-metadata && pre-commit install && pip install -e . && cd ../
3535
- name: Run tests
3636
run: python -m pytest --cov=bin tests/test_class.py

bin/build_config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
CoordinationType as ct,
2222
Component as cm,
2323
)
24-
from constants import (
24+
from constants.constants import (
2525
DATA_TYPES,
2626
DEFAULT_OPTIONS,
2727
DEFAULT_LAYOUTS,
@@ -231,7 +231,6 @@ def write_json(
231231

232232
for data_type in DATA_TYPES:
233233
for file_name, file_type in DATA_TYPES[data_type]:
234-
235234
# first file type found will be used in the config file
236235
file_exists = False
237236
if file_name in file_paths_names:
@@ -326,7 +325,7 @@ def write_json(
326325
views_indx.append((m.start(), m.end(), "views[{}]".format(len(views) - 1)))
327326

328327
# Replace components names in layout string with the corresponding view object
329-
for (start, end, view) in sorted(views_indx, key=lambda x: x[0], reverse=True):
328+
for start, end, view in sorted(views_indx, key=lambda x: x[0], reverse=True):
330329
config_layout = config_layout[:start] + view + config_layout[end:]
331330

332331
# Remove remaining | and / operators and empty parenthesis

0 commit comments

Comments
 (0)