Skip to content

Commit

Permalink
Merge pull request #7 from kthyng/small_fix
Browse files Browse the repository at this point in the history
updated syntax for viridis to be default seq cmap
  • Loading branch information
kthyng authored Nov 27, 2023
2 parents d645bd2 + 8af9aca commit 22ac4fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,28 @@ repos:
- id: file-contents-sorter
files: requirements-dev.txt

- repo: https://gitlab.com/pycqa/flake8
# - repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
exclude: docs/source/conf.py
args: [--max-line-length=105, --ignore=E203,E501,W503, --select=select=C,E,F,W,B,B950]

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
rev: v5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
args: [--project=gcm_filters, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]

- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.1
hooks:
- id: seed-isort-config
# - repo: https://github.com/asottile/seed-isort-config
# rev: v2.1.1
# hooks:
# - id: seed-isort-config

- repo: https://github.com/psf/black
rev: stable
rev: 22.3.0 # https://github.com/psf/black/issues/2964
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion xcmocean/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

# sequential colormap defaults to viridis if variable type can't be determined
SEQ = defaultdict(lambda: cmo.cm.viridis)
SEQ = defaultdict(lambda: cmo.mpl.colormaps.get_cmap("viridis"))
SEQ.update(
{
"temp": cmo.thermal,
Expand Down

0 comments on commit 22ac4fa

Please sign in to comment.