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 Apr 29, 2024
1 parent 7c53b95 commit 1f6bc60
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion docs/interactive_plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@
"source": [
"import os\n",
"\n",
"import discretisedfield as df\n",
"import discretisedfield.tools as dft\n",
"import numpy as np\n",
"\n",
Expand Down
1 change: 1 addition & 0 deletions micromagneticdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Analyse micromagnetic data."""

import importlib.metadata

import pytest
Expand Down
1 change: 0 additions & 1 deletion micromagneticdata/combined_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import ubermagutil as uu

import micromagneticdata as md

from .abstract_drive import AbstractDrive


Expand Down
2 changes: 1 addition & 1 deletion micromagneticdata/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, name, dirname="./"):

if not os.path.exists(self.path):
msg = f"Directory {self.path=} cannot be found."
raise IOError(msg)
raise OSError(msg)

def __repr__(self):
"""Representation string.
Expand Down
2 changes: 1 addition & 1 deletion micromagneticdata/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self, name, number, dirname="./", x=None, use_cache=False, **kwargs
self.drive_path = pathlib.Path(f"{dirname}/{name}/drive-{number}")
if not self.drive_path.exists():
msg = f"Directory {self.drive_path!r} does not exist."
raise IOError(msg)
raise OSError(msg)

self.use_cache = use_cache
self.name = name
Expand Down
3 changes: 1 addition & 2 deletions micromagneticdata/mumax3drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import ubermagutil as uu

import micromagneticdata as md

from .abstract_drive import AbstractDrive


Expand Down Expand Up @@ -67,7 +66,7 @@ def __init__(self, name, number, dirname="./", x=None, use_cache=False, **kwargs
f"{dirname}/{name}/drive-{number}/{name}.out"
) # required to initialise self.x in super
if not self._mumax_output_path.exists():
raise IOError(
raise OSError(
f"Output directory {self._mumax_output_path!r} does not exist."
)

Expand Down
1 change: 0 additions & 1 deletion micromagneticdata/oommfdrive.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ubermagutil as uu

import micromagneticdata as md

from .abstract_drive import AbstractDrive


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 1f6bc60

Please sign in to comment.