Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent 3d63702 commit 8e9d171
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions discretisedfield/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Finite-difference fields."""

import importlib.metadata
import pathlib

Expand Down
2 changes: 1 addition & 1 deletion discretisedfield/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def vdim_mapping(self, vdim_mapping):
def _r_dim_mapping(self):
"""Map dims to vdims."""
reversed_mapping = {val: key for key, val in self.vdim_mapping.items()}
return {dim: reversed_mapping.get(dim, None) for dim in self.mesh.region.dims}
return {dim: reversed_mapping.get(dim) for dim in self.mesh.region.dims}

def __abs__(self):
"""Absolute value of the field.
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
and :py:func:`discretisedfield.Field.fromfile` instead.
"""

import json
import pathlib

Expand Down
1 change: 1 addition & 0 deletions discretisedfield/io/ovf2vtk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""OVF to VTK file conversion."""

import argparse

import discretisedfield as df
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/plotting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Matplotlib based plotting."""

# ruff: noqa: F401
from discretisedfield.plotting import util
from discretisedfield.plotting.hv import Hv
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/plotting/hv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Holoviews-based plotting."""

import contextlib
import copy
import functools
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/plotting/k3d_field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""K3d based plotting."""

import k3d
import matplotlib
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/plotting/mpl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Matplotlib-based plotting."""

import abc

import matplotlib.pyplot as plt
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/plotting/mpl_field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Matplotlib-based plotting."""

import warnings

import matplotlib.pyplot as plt
Expand Down
1 change: 1 addition & 0 deletions discretisedfield/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convenience tools"""

# ruff: noqa: F401
from .tools import (
count_bps,
Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tasks to release the package."""

import os
import shutil

Expand Down

0 comments on commit 8e9d171

Please sign in to comment.