Skip to content

Commit 74fce58

Browse files
committed
Run isort
1 parent b76342f commit 74fce58

File tree

225 files changed

+1926
-1595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+1926
-1595
lines changed

docs/_ext/custom-sitemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import xml.etree.ElementTree as ET
21
import re
2+
import xml.etree.ElementTree as ET
33

44

55
def match_exclude_url(app, url):

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
import datetime
2121
import os
2222
import re
23-
import sys
2423
import subprocess
24+
import sys
25+
2526
import tidy3d
2627

2728
# import sphinxcontrib.divparams as divparams

docs/generate_doc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Generate documentation for Material Library (Python)
22

33
import numpy as np
4+
45
from tidy3d import material_library as lib
56
from tidy3d.constants import C_0
6-
from tidy3d.material_library.material_library import MaterialItemUniaxial, MaterialItem
7-
from tidy3d.material_library.material_library import MaterialItem2D
7+
from tidy3d.material_library.material_library import (
8+
MaterialItem,
9+
MaterialItem2D,
10+
MaterialItemUniaxial,
11+
)
812

913
LOW_LOSS_THRESHOLD = 2e-5
1014

poetry.lock

Lines changed: 74 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ dev = [
117117
'divparams',
118118
'gdspy',
119119
'gdstk',
120-
'gdstk',
121120
'grcwa',
122121
'ipython',
123122
'ipython',
@@ -220,6 +219,7 @@ typing-modules = [
220219
"tidy3d.components.types",
221220
] # without this Literal["something fails"]
222221
select = [
222+
"I", # isort
223223
"E", # pycodestyle errors
224224
"W", # pycodestyle warnings
225225
"F", # pyflakes

scripts/make_script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
99
"""
1010

11+
import argparse
1112
import os
12-
import sys
1313
import re
14-
import argparse
15-
import tempfile
1614
import subprocess
15+
import sys
16+
import tempfile
1717

1818
import tidy3d as td
1919

scripts/sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Generates sample simulation json and h5 files in the tests/sims folder"""
2-
from os.path import join
32
import sys
3+
from os.path import join
44

55
sys.path.append("tests")
66

scripts/schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Generates schema for Simulation, saves it to file."""
22

33
import json
4+
45
import tidy3d
56

67
FNAME = "tidy3d/schema.json"

tests/_test_data/_test_datasets_no_vtk.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"""Tests tidy3d/components/data/dataset.py"""
22

3-
import pytest
43
import builtins
5-
from ..test_data.test_datasets import test_triangular_dataset as _test_triangular_dataset
4+
5+
import pytest
6+
67
from ..test_data.test_datasets import test_tetrahedral_dataset as _test_tetrahedral_dataset
8+
from ..test_data.test_datasets import test_triangular_dataset as _test_triangular_dataset
79

810

911
@pytest.fixture

tests/_test_local/_test_adjoint_performance.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
import pytest
2-
import numpy as np
31
import sys
4-
from memory_profiler import profile
5-
import matplotlib.pyplot as plt
62
import time
73

8-
from jax import grad
9-
4+
import matplotlib.pyplot as plt
5+
import numpy as np
6+
import pytest
107
import tidy3d as td
11-
8+
from jax import grad
9+
from memory_profiler import profile
10+
from tidy3d.plugins.adjoint.components.data.data_array import JaxDataArray
11+
from tidy3d.plugins.adjoint.components.data.dataset import JaxPermittivityDataset
1212
from tidy3d.plugins.adjoint.components.geometry import JaxBox
1313
from tidy3d.plugins.adjoint.components.medium import JaxCustomMedium
14-
from tidy3d.plugins.adjoint.components.structure import JaxStructure
1514
from tidy3d.plugins.adjoint.components.simulation import JaxSimulation
16-
from tidy3d.plugins.adjoint.components.data.data_array import JaxDataArray
17-
from tidy3d.plugins.adjoint.components.data.dataset import JaxPermittivityDataset
15+
from tidy3d.plugins.adjoint.components.structure import JaxStructure
1816
from tidy3d.plugins.adjoint.web import run
1917

2018
from ..utils import run_emulated
2119

22-
2320
sys.path.append("/users/twhughes/Documents/Flexcompute/tidy3d-core")
2421
from tidy3d_backend.utils import Profile
2522

26-
2723
EPS = 2.0
2824
SIZE = (1.0, 2.0, 3.0)
2925
CENTER = (2.0, -1.0, 1.0)

0 commit comments

Comments
 (0)