Skip to content

Commit

Permalink
CCCS and CCVS are not TwoPortElement, but TwoPinElement.
Browse files Browse the repository at this point in the history
  • Loading branch information
amuramatsu committed May 6, 2016
1 parent d969914 commit 537a68e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions PySpice/Spice/BasicElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class VoltageControlledVoltageSource(TwoPortElement):

####################################################################################################

class CurrentControlledCurrentSource(TwoPortElement):
class CurrentControlledCurrentSource(TwoPinElement):

"""This class implements a linear current-controlled current sources (CCCS).
Expand All @@ -779,8 +779,6 @@ class CurrentControlledCurrentSource(TwoPortElement):
Keyword Parameters:
:attr:`source`
Attributes:
:attr:`source`
Expand All @@ -792,7 +790,7 @@ class CurrentControlledCurrentSource(TwoPortElement):
alias = 'CCCS'
prefix = 'F'

source = ElementNamePositionalParameter(position=0, key_parameter=True) # Fixme: right ???
source = ElementNamePositionalParameter(position=0, key_parameter=False)
current_gain = ExpressionPositionalParameter(position=1, key_parameter=False)

####################################################################################################
Expand Down Expand Up @@ -826,7 +824,7 @@ class VoltageControlledCurrentSource(TwoPortElement):

####################################################################################################

class CurrentControlledVoltageSource(TwoPortElement):
class CurrentControlledVoltageSource(TwoPinElement):

"""This class implements a linear current-controlled voltage sources (ccvs).
Expand All @@ -836,8 +834,6 @@ class CurrentControlledVoltageSource(TwoPortElement):
Keyword Parameters:
:attr:`source`
Attributes:
:attr:`source`
Expand All @@ -849,7 +845,7 @@ class CurrentControlledVoltageSource(TwoPortElement):
alias = 'CCVS'
prefix = 'H'

source = ElementNamePositionalParameter(position=0, key_parameter=True) # Fixme: right ????
source = ElementNamePositionalParameter(position=0, key_parameter=False)
transresistance = ExpressionPositionalParameter(position=1, key_parameter=False)

####################################################################################################
Expand Down

0 comments on commit 537a68e

Please sign in to comment.