Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/actions/upload-art…
Browse files Browse the repository at this point in the history
…ifact-4
  • Loading branch information
keewis committed Feb 13, 2024
2 parents 0e20b9c + 1c9127e commit 8eb7076
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ repos:
name: absolufy-imports
files: ^ceos_alos2/
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
hooks:
- id: blackdoc
additional_dependencies: ["black==23.10.1"]
additional_dependencies: ["black==24.1.1"]
- id: blackdoc-autoupdate-black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v4.0.0-alpha.8
hooks:
- id: prettier
8 changes: 5 additions & 3 deletions ceos_alos2/sar_image/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def read_metadata(f, records_per_chunk=1024):

n_chunks = math.ceil(n_records / records_per_chunk)
chunksizes = [
records_per_chunk
if records_per_chunk * (index + 1) <= n_records
else n_records - records_per_chunk * index
(
records_per_chunk
if records_per_chunk * (index + 1) <= n_records
else n_records - records_per_chunk * index
)
for index in range(n_chunks)
]
chunk_offsets = [
Expand Down

0 comments on commit 8eb7076

Please sign in to comment.