Skip to content

The default value of mutable arguments is None. #988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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