Skip to content

Commit

Permalink
read_netlist() updated to handle CCVSs
Browse files Browse the repository at this point in the history
  • Loading branch information
giaccone committed Aug 6, 2018
1 parent e3f6683 commit b843a6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def read_netlist(self, filename):
analysis = None

# initial letter of all available components
initials = ['V', 'I', 'R', 'C', 'L', 'E', 'F', 'G']
initials = ['V', 'I', 'R', 'C', 'L', 'E', 'F', 'G', 'H']
components = []

# 1) get the analysis type
Expand Down Expand Up @@ -389,8 +389,8 @@ def read_netlist(self, filename):
# get gain
values.append(float(self.convert_unit(sline[5])))

# voltage controlled voltage sources
elif sline[0][0].upper() == 'F':
# CCCS or CCVS
elif (sline[0][0].upper() == 'F') | (sline[0][0].upper() == 'H'):
# add name and nodes
names.append(sline[0])
node_labels.append(sline[1:3])
Expand Down

0 comments on commit b843a6b

Please sign in to comment.