Skip to content

Commit

Permalink
rename imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Apr 19, 2024
1 parent d7dc70d commit 007cd0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyoptsparse/pyOpt_constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

# Local modules
from .pyOpt_error import Error, pyOptSparseWarning
from .pyOpt_types import Dict1DType

Check warning on line 11 in pyoptsparse/pyOpt_constraint.py

View check run for this annotation

Codecov / codecov/patch

pyoptsparse/pyOpt_constraint.py#L11

Added line #L11 was not covered by tests
from .pyOpt_utils import INFINITY, _broadcast_to_array, convertToCOO
from .types import Dict1DType


class Constraint:
Expand Down
2 changes: 1 addition & 1 deletion pyoptsparse/pyOpt_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Local modules
from .pyOpt_MPI import MPI
from .pyOpt_optimization import Optimization
from .types import Dict1DType, Dict2DType
from .pyOpt_types import Dict1DType, Dict2DType

Check warning on line 11 in pyoptsparse/pyOpt_gradient.py

View check run for this annotation

Codecov / codecov/patch

pyoptsparse/pyOpt_gradient.py#L11

Added line #L11 was not covered by tests


class Gradient:
Expand Down
2 changes: 1 addition & 1 deletion pyoptsparse/pyOpt_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .pyOpt_constraint import Constraint
from .pyOpt_error import Error
from .pyOpt_objective import Objective
from .pyOpt_types import Dict1DType, Dict2DType, NumpyType

Check warning on line 18 in pyoptsparse/pyOpt_optimization.py

View check run for this annotation

Codecov / codecov/patch

pyoptsparse/pyOpt_optimization.py#L18

Added line #L18 was not covered by tests
from .pyOpt_utils import (
ICOL,
IDATA,
Expand All @@ -28,7 +29,6 @@
scaleRows,
)
from .pyOpt_variable import Variable
from .types import Dict1DType, Dict2DType, NumpyType


class Optimization:
Expand Down
3 changes: 2 additions & 1 deletion pyoptsparse/pyOpt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
mat = {'csr':[rowp, colind, data], 'shape':[nrow, ncols]} # A csr matrix
mat = {'csc':[colp, rowind, data], 'shape':[nrow, ncols]} # A csc matrix
"""

# Standard Python modules
import importlib
import os
Expand All @@ -24,7 +25,7 @@

# Local modules
from .pyOpt_error import Error
from .types import ArrayType
from .pyOpt_types import ArrayType

Check warning on line 28 in pyoptsparse/pyOpt_utils.py

View check run for this annotation

Codecov / codecov/patch

pyoptsparse/pyOpt_utils.py#L28

Added line #L28 was not covered by tests

# Define index mnemonics
IROW = 0
Expand Down

0 comments on commit 007cd0b

Please sign in to comment.