Skip to content

Commit c08d7af

Browse files
SMoraisAnsyspyansys-ci-botSamuelopez-ansys
authored
CHORE: Rename numbers.py into numbers_utils.py (#6412)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Samuel Lopez <[email protected]>
1 parent 280d18f commit c08d7af

Some content is hidden

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

47 files changed

+559
-61
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename numbers.py into numbers_utils.py

doc/source/API/Variables.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Quantities with units can be managed using the class Quantity.
3939

4040
.. code:: python
4141
42-
from ansys.aedt.core.generic.numbers import Quantity
42+
from ansys.aedt.core.generic.numbers_utils import Quantity
4343
a = Quantity(1, "GHz")
4444
b = a + 1
4545
c = a + "1MHz"
@@ -53,7 +53,7 @@ Quantities with units can be managed using the class Quantity.
5353
setup.props["Freq"] = a
5454
5555
56-
.. currentmodule:: ansys.aedt.core.generic.numbers
56+
.. currentmodule:: ansys.aedt.core.generic.numbers_utils
5757

5858
.. autosummary::
5959
:toctree: _autosummary

doc/source/User_guide/variables.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Quantities with units can be managed using the class ``Quantity``.
6666

6767
.. code:: python
6868
69-
from ansys.aedt.core.generic.numbers import Quantity
69+
from ansys.aedt.core.generic.numbers_utils import Quantity
7070
a = Quantity(1, "GHz")
7171
b = a + 1
7272
c = a + "1MHz"

src/ansys/aedt/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def custom_show_warning(message, category, filename, lineno, file=None, line=Non
107107
from ansys.aedt.core.generic.general_methods import is_windows
108108
from ansys.aedt.core.generic.general_methods import online_help
109109
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
110-
from ansys.aedt.core.generic.numbers import Quantity
110+
from ansys.aedt.core.generic.numbers_utils import Quantity
111111
from ansys.aedt.core.hfss import Hfss
112112
from ansys.aedt.core.hfss3dlayout import Hfss3dLayout
113113
from ansys.aedt.core.icepak import Icepak

src/ansys/aedt/core/application/analysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
from ansys.aedt.core.generic.general_methods import is_windows
5757
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
5858

59-
# from ansys.aedt.core.generic.numbers import Quantity
60-
from ansys.aedt.core.generic.numbers import decompose_variable_value
61-
from ansys.aedt.core.generic.numbers import is_number
59+
# from ansys.aedt.core.generic.numbers_utils import Quantity
60+
from ansys.aedt.core.generic.numbers_utils import decompose_variable_value
61+
from ansys.aedt.core.generic.numbers_utils import is_number
6262
from ansys.aedt.core.generic.settings import settings
6363
from ansys.aedt.core.internal.errors import AEDTRuntimeError
6464
from ansys.aedt.core.modules.boundary.layout_boundary import NativeComponentObject

src/ansys/aedt/core/application/design.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
from ansys.aedt.core.generic.general_methods import is_windows
7878
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
7979
from ansys.aedt.core.generic.general_methods import settings
80-
from ansys.aedt.core.generic.numbers import _units_assignment
81-
from ansys.aedt.core.generic.numbers import decompose_variable_value
80+
from ansys.aedt.core.generic.numbers_utils import _units_assignment
81+
from ansys.aedt.core.generic.numbers_utils import decompose_variable_value
8282
from ansys.aedt.core.generic.settings import inner_project_settings
8383
from ansys.aedt.core.internal.aedt_versions import aedt_versions
8484
from ansys.aedt.core.internal.errors import GrpcApiError

src/ansys/aedt/core/application/variables.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
from ansys.aedt.core.generic.file_utils import open_file
5151
from ansys.aedt.core.generic.general_methods import check_numeric_equivalence
5252
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
53-
from ansys.aedt.core.generic.numbers import Quantity
54-
from ansys.aedt.core.generic.numbers import decompose_variable_value
55-
from ansys.aedt.core.generic.numbers import is_array
56-
from ansys.aedt.core.generic.numbers import is_number
53+
from ansys.aedt.core.generic.numbers_utils import Quantity
54+
from ansys.aedt.core.generic.numbers_utils import decompose_variable_value
55+
from ansys.aedt.core.generic.numbers_utils import is_array
56+
from ansys.aedt.core.generic.numbers_utils import is_number
5757
from ansys.aedt.core.internal.errors import GrpcApiError
5858

5959

src/ansys/aedt/core/extensions/maxwell3d/create_coil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from ansys.aedt.core.extensions.misc import get_port
3838
from ansys.aedt.core.extensions.misc import get_process_id
3939
from ansys.aedt.core.extensions.misc import is_student
40-
from ansys.aedt.core.generic.numbers import Quantity
40+
from ansys.aedt.core.generic.numbers_utils import Quantity
4141
from ansys.aedt.core.internal.errors import AEDTRuntimeError
4242
from ansys.aedt.core.modeler.advanced_cad.coil import Coil
4343

src/ansys/aedt/core/generic/configurations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from ansys.aedt.core.generic.file_utils import read_configuration_file
4242
from ansys.aedt.core.generic.file_utils import write_configuration_file
4343
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
44-
from ansys.aedt.core.generic.numbers import decompose_variable_value
44+
from ansys.aedt.core.generic.numbers_utils import decompose_variable_value
4545
from ansys.aedt.core.internal.errors import GrpcApiError
4646
from ansys.aedt.core.internal.load_aedt_file import load_keyword_in_aedt_file
4747
from ansys.aedt.core.modeler.cad.components_3d import UserDefinedComponent

src/ansys/aedt/core/generic/data_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
from ansys.aedt.core.generic.file_utils import read_json
3333
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
34-
from ansys.aedt.core.generic.numbers import Quantity
34+
from ansys.aedt.core.generic.numbers_utils import Quantity
3535
from ansys.aedt.core.modeler.cad.elements_3d import EdgePrimitive
3636
from ansys.aedt.core.modeler.cad.elements_3d import FacePrimitive
3737
from ansys.aedt.core.modeler.cad.elements_3d import VertexPrimitive

0 commit comments

Comments
 (0)