Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
6 changes: 3 additions & 3 deletions ahkab/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def add_vsource(self, part_id, n1, n2, dc_value, ac_value=0, function=None):
are added as well).

Parameters:
name (string): the volatge source name (eg "VA"). The first letter is always V.
name (string): the voltage source name (eg "VA"). The first letter is always V.
n1, n2 (string): the nodes to which the element is connected.
eg. "in" or "out_a"
dc_value (float): DC voltage
Expand Down Expand Up @@ -691,7 +691,7 @@ def add_user_defined(self, module, label, param_dict):
return True

def remove_elem(self, elem):
"""Removes an element from ther circuit and takes care that no
"""Removes an element from the circuit and takes care that no
"orphan" nodes are left.
circ: the circuit instance
elem: the element to be removed
Expand Down Expand Up @@ -790,7 +790,7 @@ def find_vde(self, index):
# STATIC METHODS
def is_elem_voltage_defined(elem):
"""Returns:
True se the elem is a vsource, inductor, evsource or hvsource
True if the elem is a vsource, inductor, evsource or hvsource
False otherwise.
"""
if isinstance(elem, devices.VSource) or isinstance(elem, devices.EVSource) or \
Expand Down