Skip to content

Commit 28368e2

Browse files
committed
The default value of mutable arguments is None.
1 parent f3911d3 commit 28368e2

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

pyaedt/application/Analysis3D.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ def export_3d_model(self, fileName, filePath, fileFormat=".step", object_list=No
438438
fileFormat : str, optional
439439
Format of the file. The default is ``".step"``.
440440
object_list : list, optional
441-
List of objects to export. The default is ``[]``.
441+
List of objects to export. The default is ``None``.
442442
removed_objects : list, optional
443-
The default is ``[]``.
443+
The default is ``None``.
444444
445445
Returns
446446
-------

pyaedt/application/AnalysisNexxim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_all_return_loss_list(self, excitation_names=None, excitation_name_prefix
181181
Parameters
182182
----------
183183
excitation_names : list, optional
184-
List of excitations. The default is ``[]``, in which case
184+
List of excitations. The default is ``None``, in which case
185185
the return losses for all excitations are to be provided.
186186
For example ``["1", "2"]``.
187187
excitation_name_prefix : string, optional

pyaedt/circuit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,10 @@ def export_touchstone(self, solutionname, sweepname, filename=None, variation=No
763763
which exports the file to the working directory.
764764
variation : list, optional
765765
List of all parameter variations. For example, ``["$AmbientTemp", "$PowerIn"]``.
766-
The default is ``[]``.
766+
The default is ``None``.
767767
variations_value : list, optional
768768
List of all parameter variation values. For example, ``["22cel", "100"]``.
769-
The default is ``[]``.
769+
The default is ``None``.
770770
771771
Returns
772772
-------

pyaedt/icepak.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,14 +1451,14 @@ def assign_em_losses(
14511451
String containing the frequency to map. The default is ``None``.
14521452
The value must be ``None`` for Eigenmode analysis.
14531453
surface_objects : list, optional
1454-
List of objects in the source that are metals. The default is ``[]``.
1454+
List of objects in the source that are metals. The default is ``None``.
14551455
source_project_name : str, optional
14561456
Name of the source project. The default is ``None``, in which case the
14571457
source from the same project is used.
14581458
paramlist :list, optional
1459-
List of all parameters in the EM to map. The default is ``[]``.
1459+
List of all parameters in the EM to map. The default is ``None``.
14601460
object_list : list, optional
1461-
List of objects. The default is ``[]``.
1461+
List of objects. The default is ``None``.
14621462
14631463
Returns
14641464
-------
@@ -1758,7 +1758,7 @@ def export_summary(
17581758
variation : str, optional
17591759
The default is ``""``.
17601760
variationlist : list, optional
1761-
The default is ``[]``.
1761+
The default is ``None``.
17621762
17631763
Returns
17641764
-------

pyaedt/modeler/PrimitivesEmit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def get_prop_nodes(self, property_filter=None):
417417
418418
Args:
419419
property_filter (dict, optional): Only return nodes with all
420-
the property name,value pairs of this dict. Defaults to {}
420+
the property name, value pairs of this dict. Defaults to ``None``
421421
which returns all nodes.
422422
423423
Returns:

pyaedt/modeler/PrimitivesMaxwellCircuit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def create_resistor(self, compname=None, value=50, location=None, angle=0, use_i
6767
value : float, optional
6868
Value for the resistor. The default is ``50``.
6969
location : list of float, optional
70-
Position on the X axis and Y axis.
70+
Position on the X axis and Y axis. The default is ``None``.
7171
angle : float, optional
7272
Angle of rotation in degrees. The default is ``0``.
7373
use_instance_id_netlist : bool, optional
@@ -110,7 +110,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i
110110
value : float, optional
111111
Value for the inductor. The default is ``50``.
112112
location : list of float, optional
113-
Position on the X axis and Y axis.
113+
Position on the X axis and Y axis. The default is ``None``.
114114
angle : float, optional
115115
Angle rotation in degrees. The default is ``0``.
116116
use_instance_id_netlist : bool, optional
@@ -189,7 +189,7 @@ def create_diode(self, compname=None, location=None, angle=0, use_instance_id_ne
189189
compname : str, optional
190190
Name of the diode. The default is ``None``.
191191
location : list of float, optional
192-
Position on the X axis and Y axis.
192+
Position on the X axis and Y axis. The default is ``None``.
193193
angle : float, optional
194194
Angle of rotation in degrees. The default is ``0``.
195195
use_instance_id_netlist : bool, optional

pyaedt/modeler/PrimitivesNexxim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def create_capacitor(self, compname=None, value=50, location=None, angle=0, use_
540540
value : float, optional
541541
Capacitor value. The default is ``50``.
542542
location : list of float, optional
543-
Position on the X axis and Y axis.
543+
Position on the X axis and Y axis. The default is ``None``.
544544
angle : float, optional
545545
Angle rotation in degrees. The default is ``0``.
546546
use_instance_id_netlist : bool, optional
@@ -584,7 +584,7 @@ def create_voltage_dc(self, compname=None, value=1, location=None, angle=0, use_
584584
value : float, optional
585585
Voltage value. The default is ``50``.
586586
location : list of float, optional
587-
Position on the X axis and Y axis.
587+
Position on the X axis and Y axis. The default is ``None``.
588588
angle : float, optional
589589
Angle rotation in degrees. The default is ``0``.
590590
use_instance_id_netlist : bool, optional
@@ -780,7 +780,7 @@ def create_coupling_inductors(
780780
value : float, optional
781781
Value for the coupling inductor. The default is ``1``.
782782
location : list of float, optional
783-
Position on the X axis and Y axis.
783+
Position on the X axis and Y axis. The default is ``None``.
784784
angle : float, optional
785785
Angle rotation in degrees. The default is ``0``.
786786
use_instance_id_netlist : bool, optional

pyaedt/modeler/PrimitivesTwinBuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i
130130
value : float, optional
131131
Value for the inductor. The default is ``50``.
132132
location : list of float, optional
133-
Position on the X axis and Y axis.
133+
Position on the X axis and Y axis. The default is ``None``.
134134
angle : float, optional
135135
Angle rotation in degrees. The default is ``0``.
136136
use_instance_id_netlist : bool, optional

0 commit comments

Comments
 (0)