Skip to content

Commit 61da94f

Browse files
authored
Rename package to ansys-additive-core (#63)
1 parent bfbae92 commit 61da94f

Some content is hidden

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

61 files changed

+194
-186
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
MAIN_PYTHON_VERSION: "3.10"
1414
DOCUMENTATION_CNAME: "additive.docs.pyansys.com"
15-
LIBRARY_NAME: "ansys-additive"
15+
LIBRARY_NAME: "ansys-additive-core"
1616
ANSYS_PRODUCT_IMAGE: "ghcr.io/ansys/additive:latest"
1717
ANSYS_PRODUCT_CONTAINER: "ansys-additive-container"
1818

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ PyAdditive
1212
:target: https://docs.pyansys.com/
1313
:alt: PyAnsys
1414

15-
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-additive?logo=pypi
16-
:target: https://pypi.org/project/ansys-additive/
15+
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-additive-core?logo=pypi
16+
:target: https://pypi.org/project/ansys-additive-core/
1717
:alt: Python
1818

19-
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-additive.svg?logo=python&logoColor=white
20-
:target: https://pypi.org/project/ansys-additive
19+
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-additive-core.svg?logo=python&logoColor=white
20+
:target: https://pypi.org/project/ansys-additive-core
2121
:alt: PyPI
2222

23-
.. |codecov| image:: https://codecov.io/gh/pyansys/ansys-additive/branch/main/graph/badge.svg
23+
.. |codecov| image:: https://codecov.io/gh/pyansys/ansys-additive-core/branch/main/graph/badge.svg
2424
:target: https://codecov.io/gh/pyansys/pyadditive
2525
:alt: Codecov
2626

@@ -46,7 +46,7 @@ a private PyPI repository must be used. See `Getting Started`_ for more informat
4646

4747
.. code:: bash
4848
49-
pip install ansys-additive --index-url=https://${PYANSYS_PYPI_PRIVATE_PAT}@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
49+
pip install ansys-additive-core --index-url=https://${PYANSYS_PYPI_PRIVATE_PAT}@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
5050
5151
To install the latest development version, use the following commands.
5252

@@ -61,7 +61,7 @@ Basic Usage
6161

6262
.. code:: python
6363
64-
import ansys.additive as pyadditive
64+
import ansys.additive.core as pyadditive
6565
6666
additive = pyadditive.Additive()
6767

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pyvista
1010
from sphinx_gallery.sorting import FileNameSortKey
1111

12-
from ansys.additive import __version__
12+
from ansys.additive.core import __version__
1313

1414
# Manage errors
1515
pyvista.set_error_output_file("errors.txt")
@@ -243,7 +243,7 @@
243243
# directory where function granular galleries are stored
244244
"backreferences_dir": None,
245245
# Modules for which function level galleries are created.
246-
"doc_module": "ansys-additive",
246+
"doc_module": "ansys-additive-core",
247247
"image_scrapers": ("pyvista", "matplotlib"),
248248
"ignore_pattern": r"\b(" + "|".join(map(re.escape, ignore_patterns)) + r")\b",
249249
"thumbnail_size": (350, 350),
@@ -259,7 +259,7 @@
259259
}
260260

261261
linkcheck_ignore = [
262-
r"https://pypi.org/project/ansys-additive.*", # TODO: remove once pyadditive is published
262+
r"https://pypi.org/project/ansys-additive-core.*", # TODO: remove once pyadditive is published
263263
r"https://github.com/ansys-internal/.*", # TODO: remove once pyadditive is published
264264
r"https://ansyshelp.ansys.com/.*",
265265
r"https://ansysproducthelpqa.win.ansys.com/.*",

doc/source/getting_started/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Once logged in to Ansys Lab, create a new jupyter notebook and connect to the ad
4040

4141
.. code:: pycon
4242
43-
>>> import ansys.additive as pyadditive
43+
>>> import ansys.additive.core as pyadditive
4444
>>> additive = pyadditive.Additive()
4545
4646
Example notebooks can found in the `Examples <https://additive.docs.pyansys.com/dev/examples/index.html>`_
@@ -67,7 +67,7 @@ Next, connect to the service with:
6767

6868
.. code:: pycon
6969
70-
>>> import ansys.additive as pyadditive
70+
>>> import ansys.additive.core as pyadditive
7171
>>> additive = pyadditive.Additive()
7272
7373
Installation
@@ -109,7 +109,7 @@ Then, you can simply execute:
109109

110110
.. code:: bash
111111
112-
python -m pip install ansys-additive
112+
python -m pip install ansys-additive-core
113113
114114
.. warning::
115115

@@ -121,10 +121,10 @@ Then, you can simply execute:
121121
.. code:: bash
122122
123123
# On linux
124-
pip install ansys-additive --index-url=https://${PYANSYS_PYPI_PRIVATE_PAT}@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
124+
pip install ansys-additive-core --index-url=https://${PYANSYS_PYPI_PRIVATE_PAT}@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
125125
126126
# On Windows
127-
pip install ansys-additive --index-url=https://%PYANSYS_PYPI_PRIVATE_PAT%@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
127+
pip install ansys-additive-core --index-url=https://%PYANSYS_PYPI_PRIVATE_PAT%@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
128128
129129
See preceding note for how to get the access token to use for ``PYANSYS_PYPI_PRIVATE_PAT``.
130130

@@ -200,8 +200,8 @@ For example, on Linux with Python 3.8, unzip the wheelhouse archive and install
200200

201201
.. code:: bash
202202
203-
unzip ansys-additive-v0.1.dev0-wheelhouse-Linux-3.8.zip wheelhouse
204-
pip install ansys-additive -f wheelhouse --no-index --upgrade --ignore-installed
203+
unzip ansys-additive-core-v0.1.dev0-wheelhouse-Linux-3.8.zip wheelhouse
204+
pip install ansys-additive-core -f wheelhouse --no-index --upgrade --ignore-installed
205205
206206
If you're on Windows with Python 3.9, unzip to a wheelhouse directory and install using the preceding command.
207207

examples/00_additive_single_bead.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"""
1414
import matplotlib.pyplot as plt
1515

16-
import ansys.additive as pyadditive
17-
from ansys.additive import MeltPoolColumnNames
16+
import ansys.additive.core as pyadditive
17+
from ansys.additive.core import MeltPoolColumnNames
1818

1919
additive = pyadditive.Additive()
2020

@@ -23,22 +23,22 @@
2323
# ---------------
2424
# The next step is a to choose a material. A list of available materials can
2525
# be obtained using the
26-
# :meth:`get_materials_list() <ansys.additive.additive.Additive.get_materials_list>`
26+
# :meth:`get_materials_list() <ansys.additive.core.additive.Additive.get_materials_list>`
2727
# command.
2828

2929
print(additive.get_materials_list())
3030

3131
###############################################################################
3232
# Obtain the parameters for a single material by passing one of the names
3333
# from the materials list to
34-
# :meth:`get_material() <ansys.additive.additive.Additive.get_material>`.
34+
# :meth:`get_material() <ansys.additive.core.additive.Additive.get_material>`.
3535
material = additive.get_material("17-4PH")
3636

3737
###############################################################################
3838
# Set Machine Parameters
3939
# ----------------------
4040
# Specify machine parameters by first creating an
41-
# :class:`AdditiveMachine <ansys.additive.machine.AdditiveMachine>` object
41+
# :class:`AdditiveMachine <from ansys.additive.core.machine.AdditiveMachine>` object
4242
# then assigning the desired values. All values are in SI units (m, kg, s, K)
4343
# unless otherwise noted.
4444

@@ -55,7 +55,7 @@
5555
###############################################################################
5656
# Specify Single Bead Simulation Inputs
5757
# -------------------------------------
58-
# Create a :class:`SingleBeadInput <ansys.additive.single_bead.SingleBeadInput>`
58+
# Create a :class:`SingleBeadInput <ansys.additive.core.single_bead.SingleBeadInput>`
5959
# object containing the desired simulation parameters.
6060

6161
input = pyadditive.SingleBeadInput(
@@ -65,11 +65,11 @@
6565
###############################################################################
6666
# Run Simulation
6767
# --------------
68-
# Use the :meth:`simulate() <ansys.additive.additive.Additive.simulate>`
68+
# Use the :meth:`simulate() <ansys.additive.core.additive.Additive.simulate>`
6969
# method of the ``additive`` object to run the simulation. The returned object is a
70-
# :class:`SingleBeadSummary <ansys.additive.single_bead.SingleBeadSummary>`
70+
# :class:`SingleBeadSummary <ansys.additive.core.single_bead.SingleBeadSummary>`
7171
# containing the input and a
72-
# :class:`MeltPool <ansys.additive.single_bead.MeltPool>` object.
72+
# :class:`MeltPool <ansys.additive.core.single_bead.MeltPool>` object.
7373

7474
summary = additive.simulate(input)
7575

@@ -78,7 +78,7 @@
7878
# -------------------------
7979
# A :class:`Pandas DataFrame <pandas.DataFrame>` containing the melt pool
8080
# statistics can be obtained using the
81-
# :meth:`data_frame() <ansys.additive.single_bead.MeltPool.data_frame>` property
81+
# :meth:`data_frame() <ansys.additive.core.single_bead.MeltPool.data_frame>` property
8282
# of the ``melt_pool`` attribute of the ``summary`` object. The
8383
# :meth:`plot() <pandas.DataFrame.plot>` method can be used to plot the melt
8484
# pool dimensions as a function of bead length.

examples/01_additive_porosity.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
First, connect to the Additive service.
1212
"""
13-
import ansys.additive as pyadditive
13+
import ansys.additive.core as pyadditive
1414

1515
additive = pyadditive.Additive()
1616

@@ -19,22 +19,22 @@
1919
# ---------------
2020
# The next step is a to choose a material. A list of available materials can
2121
# be obtained using the
22-
# :meth:`get_materials_list() <ansys.additive.additive.Additive.get_materials_list>`
22+
# :meth:`get_materials_list() <ansys.additive.core.additive.Additive.get_materials_list>`
2323
# command.
2424

2525
print(additive.get_materials_list())
2626

2727
###############################################################################
2828
# Obtain the parameters for a single material by passing one of the names
2929
# from the materials list to
30-
# :meth:`get_material() <ansys.additive.additive.Additive.get_material>`.
30+
# :meth:`get_material() <ansys.additive.core.additive.Additive.get_material>`.
3131
material = additive.get_material("316L")
3232

3333
###############################################################################
3434
# Set Machine Parameters
3535
# ----------------------
3636
# Specify machine parameters by first creating an
37-
# :class:`AdditiveMachine <ansys.additive.machine.AdditiveMachine>` object
37+
# :class:`AdditiveMachine <from ansys.additive.core.machine.AdditiveMachine>` object
3838
# then assigning the desired values. All values are in SI units (m, kg, s, K)
3939
# unless otherwise noted.
4040
machine = pyadditive.AdditiveMachine()
@@ -50,7 +50,7 @@
5050
###############################################################################
5151
# Specify Porosity Simulation Inputs
5252
# ----------------------------------
53-
# Create a :class:`PorosityInput <ansys.additive.porosity.PorosityInput>` object
53+
# Create a :class:`PorosityInput <ansys.additive.core.porosity.PorosityInput>` object
5454
# containing the desired simulation parameters.
5555

5656
input = pyadditive.PorosityInput(
@@ -65,9 +65,9 @@
6565
###############################################################################
6666
# Run Simulation
6767
# --------------
68-
# Use the :meth:`simulate() <ansys.additive.additive.Additive.simulate>` method
68+
# Use the :meth:`simulate() <ansys.additive.core.additive.Additive.simulate>` method
6969
# on the ``additive`` object to run the simulation. The returned object is a
70-
# :class:`PorositySummary <ansys.additive.porosity.PorositySummary>` object
70+
# :class:`PorositySummary <ansys.additive.core.porosity.PorositySummary>` object
7171
# containing the input and the relative density of the simulated sample.
7272

7373
summary = additive.simulate(input)

examples/02_additive_microstructure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
First, connect to the Additive service.
1313
"""
14-
import ansys.additive as pyadditive
14+
import ansys.additive.core as pyadditive
1515

1616
additive = pyadditive.Additive()
1717

@@ -20,15 +20,15 @@
2020
# ---------------
2121
# The next step is a to choose a material. A list of available materials can
2222
# be obtained using the
23-
# :meth:`get_materials_list() <ansys.additive.additive.Additive.get_materials_list>`
23+
# :meth:`get_materials_list() <ansys.additive.core.additive.Additive.get_materials_list>`
2424
# command.
2525

2626
print(additive.get_materials_list())
2727

2828
###############################################################################
2929
# Obtain the parameters for a single material by passing one of the names
3030
# from the materials list to
31-
# :meth:`get_material() <ansys.additive.additive.Additive.get_material>`.
31+
# :meth:`get_material() <ansys.additive.core.additive.Additive.get_material>`.
3232
material = additive.get_material("17-4PH")
3333

3434
###############################################################################
@@ -108,7 +108,7 @@
108108
import pandas as pd
109109
import pyvista as pv
110110

111-
from ansys.additive import CircleEquivalenceColumnNames
111+
from ansys.additive.core import CircleEquivalenceColumnNames
112112

113113
###############################################################################
114114
# Plot Grain 2D Visualizations

examples/03_additive_thermal_history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
First, connect to the Additive service.
1313
"""
14-
import ansys.additive as pyadditive
14+
import ansys.additive.core as pyadditive
1515

1616
additive = pyadditive.Additive()
1717

@@ -27,7 +27,7 @@
2727
# Example build and STL files can be downloaded by importing the examples
2828
# module as shown below.
2929

30-
import ansys.additive.examples as examples
30+
import ansys.additive.core.examples as examples
3131

3232
# Creating an ``StlFile`` object
3333
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

examples/04_additive_doe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# import matplotlib.pyplot as plt
1616
# import numpy as np
1717

18-
# import ansys.additive as pyadditive
18+
# import ansys.additive.core as pyadditive
1919

2020
# additive = pyadditive.Additive()
2121

examples/05_advanced_optimization_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# import numpy as np
1818
# import pyvista as pv
1919

20-
# import ansys.additive as pyadditive
20+
# import ansys.additive.core as pyadditive
2121

2222
# additive = pyadditive.Additive()
2323

0 commit comments

Comments
 (0)