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 Jul 25, 2023
1 parent 9598cf9 commit 6a4b2b7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pydrex/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"""
import collections as c
import tomllib
import csv
import functools as ft
import os
import pathlib
import tomllib
from importlib.resources import files

import frontmatter as fm
Expand Down
1 change: 1 addition & 0 deletions src/pydrex/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""> PyDRex: Miscellaneous utility methods."""
from datetime import datetime

import numpy as np


Expand Down
1 change: 1 addition & 0 deletions src/pydrex/velocity_gradients.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""> PyDRex: Steady-state solutions of velocity gradients for various flows."""
import functools as ft

import numba as nb
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""> Configuration and fixtures for PyDRex tests."""
import os

import matplotlib
import pytest
from _pytest.logging import LoggingPlugin, _LiveLoggingStreamHandler
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import numpy as np

from pydrex import io as _io
from pydrex import core as _core
from pydrex import io as _io


def test_specfile():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_simple_shear_2d.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""> PyDRex: 2D simple shear tests."""
import contextlib as cl
from multiprocessing import Pool
import functools as ft
from multiprocessing import Pool
from time import perf_counter, process_time

import numpy as np
Expand All @@ -16,8 +16,8 @@
from pydrex import minerals as _minerals
from pydrex import stats as _stats
from pydrex import utils as _utils
from pydrex import visualisation as _vis
from pydrex import velocity_gradients as _dv
from pydrex import visualisation as _vis

# Subdirectory of `outdir` used to store outputs from these tests.
SUBDIR = "2d_simple_shear"
Expand Down
3 changes: 2 additions & 1 deletion tools/find_45_seeds.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Find seeds that make grains start with an average SCCS direction of 45."""
import numpy as np

from pydrex import diagnostics as _d
from pydrex import minerals as _m
from pydrex import logger as _l
from pydrex import minerals as _m

for i in range(10000):
with _l.handler_level("ERROR"):
Expand Down

0 comments on commit 6a4b2b7

Please sign in to comment.