Skip to content

Commit

Permalink
The default value of mutable arguments is None. (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey authored Mar 24, 2022
1 parent 6d6fc26 commit 5418ae4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions pyaedt/application/Analysis3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def export_3d_model(self, fileName, filePath, fileFormat=".step", object_list=No
fileFormat : str, optional
Format of the file. The default is ``".step"``.
object_list : list, optional
List of objects to export. The default is ``[]``.
List of objects to export. The default is ``None``.
removed_objects : list, optional
The default is ``[]``.
The default is ``None``.
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/application/AnalysisNexxim.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_all_return_loss_list(self, excitation_names=None, excitation_name_prefix
Parameters
----------
excitation_names : list, optional
List of excitations. The default is ``[]``, in which case
List of excitations. The default is ``None``, in which case
the return losses for all excitations are to be provided.
For example ``["1", "2"]``.
excitation_name_prefix : string, optional
Expand Down
4 changes: 2 additions & 2 deletions pyaedt/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,10 @@ def export_touchstone(self, solutionname, sweepname, filename=None, variation=No
which exports the file to the working directory.
variation : list, optional
List of all parameter variations. For example, ``["$AmbientTemp", "$PowerIn"]``.
The default is ``[]``.
The default is ``None``.
variations_value : list, optional
List of all parameter variation values. For example, ``["22cel", "100"]``.
The default is ``[]``.
The default is ``None``.
Returns
-------
Expand Down
8 changes: 4 additions & 4 deletions pyaedt/icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,14 +1451,14 @@ def assign_em_losses(
String containing the frequency to map. The default is ``None``.
The value must be ``None`` for Eigenmode analysis.
surface_objects : list, optional
List of objects in the source that are metals. The default is ``[]``.
List of objects in the source that are metals. The default is ``None``.
source_project_name : str, optional
Name of the source project. The default is ``None``, in which case the
source from the same project is used.
paramlist :list, optional
List of all parameters in the EM to map. The default is ``[]``.
List of all parameters in the EM to map. The default is ``None``.
object_list : list, optional
List of objects. The default is ``[]``.
List of objects. The default is ``None``.
Returns
-------
Expand Down Expand Up @@ -1758,7 +1758,7 @@ def export_summary(
variation : str, optional
The default is ``""``.
variationlist : list, optional
The default is ``[]``.
The default is ``None``.
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/modeler/PrimitivesEmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get_prop_nodes(self, property_filter=None):
Args:
property_filter (dict, optional): Only return nodes with all
the property name,value pairs of this dict. Defaults to {}
the property name, value pairs of this dict. Defaults to ``None``
which returns all nodes.
Returns:
Expand Down
6 changes: 3 additions & 3 deletions pyaedt/modeler/PrimitivesMaxwellCircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_resistor(self, compname=None, value=50, location=None, angle=0, use_i
value : float, optional
Value for the resistor. The default is ``50``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle of rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down Expand Up @@ -110,7 +110,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i
value : float, optional
Value for the inductor. The default is ``50``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down Expand Up @@ -189,7 +189,7 @@ def create_diode(self, compname=None, location=None, angle=0, use_instance_id_ne
compname : str, optional
Name of the diode. The default is ``None``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle of rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down
6 changes: 3 additions & 3 deletions pyaedt/modeler/PrimitivesNexxim.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def create_capacitor(self, compname=None, value=50, location=None, angle=0, use_
value : float, optional
Capacitor value. The default is ``50``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down Expand Up @@ -584,7 +584,7 @@ def create_voltage_dc(self, compname=None, value=1, location=None, angle=0, use_
value : float, optional
Voltage value. The default is ``50``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down Expand Up @@ -780,7 +780,7 @@ def create_coupling_inductors(
value : float, optional
Value for the coupling inductor. The default is ``1``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/modeler/PrimitivesTwinBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i
value : float, optional
Value for the inductor. The default is ``50``.
location : list of float, optional
Position on the X axis and Y axis.
Position on the X axis and Y axis. The default is ``None``.
angle : float, optional
Angle rotation in degrees. The default is ``0``.
use_instance_id_netlist : bool, optional
Expand Down

0 comments on commit 5418ae4

Please sign in to comment.