Skip to content

Commit 6fba567

Browse files
committed
fix: docstrings
1 parent f0932cc commit 6fba567

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

src/ansys/additive/material_tuning.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
class MaterialTuningInput:
1414
"""Input parameters for tuning a custom material.
1515
16-
``id: string``
16+
Parameters
17+
----------
18+
id: string
1719
User provided identifier for this simulation.
18-
``machine: AdditiveMachine``
20+
machine: AdditiveMachine
1921
Machine related parameters.
20-
``material: AdditiveMaterial``
22+
material: AdditiveMaterial
2123
Material used during simulation.
22-
``bead_length: float``
24+
bead_length: float
2325
Length of bead to simulate (m).
2426
"""
2527

@@ -39,34 +41,26 @@ def __init__(
3941
4042
Parameters
4143
----------
42-
4344
id: str
4445
Identifier for this set of tuning simulations.
45-
4646
experiment_data_file: str
4747
Name of CSV file containing experimental results data.
48-
4948
material_parameters_file: str
5049
Name of JSON file containing material parameters.
51-
5250
thermal_properties_lookup_file: str
5351
Name of CSV file containing a lookup table for thermal dependent properties.
54-
5552
characteristic_width_lookup_file: str
5653
Optional: Name of CSV file containing a lookup table for the characteristic melt pool
5754
width at a given temperature. If not provided, the characteristic width will be
5855
calculated and ``base_plate_temperature`` must be provided.
5956
Default is None.
60-
6157
allowable_error: float
6258
Maximum allowable error between experimental and simulated results.
6359
Default is 0.05 (5%).
64-
6560
max_iterations: int
6661
Maximum number of iterations to perform when trying to match
6762
simulation results to an experiment if the allowable error is not met.
6863
Default is 15.
69-
7064
base_plate_temperature: float
7165
Temperature of the base plate in Kelvin. This is only required if
7266
``characteristic_width_lookup_file`` is ``None``. It is ignored otherwise.

src/ansys/additive/porosity.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@
1010
class PorosityInput:
1111
"""Input parameters for porosity simulation.
1212
13-
``id: string``
13+
Parameters
14+
----------
15+
id: string
1416
User provided identifier for this simulation.
15-
``size_x: float``
17+
size_x: float
1618
Size of simulated sample in x dimension (m), valid values: 0.001 to 0.01.
17-
``size_y: float``
19+
size_y: float
1820
Size of simulated sample in y dimension (m), valid values: 0.001 to 0.01.
19-
``size_z: float``
21+
size_z: float
2022
Size of simulated sample in z dimension (m), valid values: 0.001 to 0.01.
21-
``machine: AdditiveMachine``
23+
machine: AdditiveMachine
2224
Machine related parameters.
23-
``material: AdditiveMaterial``
25+
material: AdditiveMaterial
2426
Material used during simulation.
2527
"""
2628

src/ansys/additive/server_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ def launch_server(port: int, cwd: str = USER_DATA_PATH) -> subprocess.Popen:
1515
1616
Parameters
1717
----------
18-
1918
port: int
2019
Port number to use for gRPC connections.
21-
2220
cwd: str
2321
Current working directory to use for the server process.
2422

0 commit comments

Comments
 (0)