Skip to content

Commit

Permalink
Run isort to clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed May 4, 2023
1 parent b76e0ca commit 4375d12
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
7 changes: 3 additions & 4 deletions src/imglyb/OSXAWTwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import os
import sys


usage = (
"usage: python OSXAWTwrapper.py "
"[module name | script path] "
Expand Down Expand Up @@ -68,13 +67,13 @@ def runAwtStuff():
def main():
try:
import objc
from PyObjCTools import AppHelper
from AppKit import (
NSApplication,
NSApp,
NSObject,
NSApplication,
NSApplicationActivationPolicyRegular,
NSObject,
)
from PyObjCTools import AppHelper

# from Foundation import *

Expand Down
5 changes: 3 additions & 2 deletions src/imglyb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from functools import lru_cache
import logging
from functools import lru_cache
from typing import Any, Callable, Dict

import scyjava
import scyjava.config as sjconf

from .config import get_imglib2_imglyb_version, version as __version__ # noqa: F401
from .config import get_imglib2_imglyb_version
from .config import version as __version__ # noqa: F401
from .imglib_ndarray import ImgLibReferenceGuard as _ImgLibReferenceGuard
from .ndarray_like_as_img import (
as_cell_img,
Expand Down
2 changes: 1 addition & 1 deletion src/imglyb/imglib_ndarray.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ctypes

import numpy as np
import jpype
import numpy as np
import scyjava

from imglyb import util
Expand Down
8 changes: 2 additions & 6 deletions src/imglyb/ndarray_like_as_img.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import logging
import math

import numpy as np
import scyjava

from jpype import JException, JImplements, JOverride

from . import accesses
from . import caches
from . import types
from . import util
from . import accesses, caches, types, util
from .reference_store import ReferenceStore


_global_reference_store = ReferenceStore()

_logger = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions src/imglyb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import numpy as np
import scyjava

from jpype import JImplements, JOverride, JLong, JArray
from jpype import JArray, JImplements, JLong, JOverride

_logger = logging.getLogger(__name__)

Expand Down
6 changes: 3 additions & 3 deletions tests/test_imglyb.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from jpype import JArray, JInt, JLong
import pytest
import imglyb
import numpy as np
import pytest
import scyjava
from jpype import JArray, JInt, JLong

import imglyb
from imglyb.imglib_ndarray import NumpyView


Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from pathlib import Path

import scyjava
import toml

import imglyb
import scyjava


def _expected_version():
Expand Down

0 comments on commit 4375d12

Please sign in to comment.