Skip to content

Conversation

@fsitok
Copy link

@fsitok fsitok commented Feb 23, 2019

The list of nodes needs to be expanded to multiple arguments (using *) when passed to the constructor of SubCircuit because its __init__ does not expect a list but multiple arguments:

class SubCircuit(Netlist):
    def __init__(self, name, *nodes, **kwargs):
...

@fsitok
Copy link
Author

fsitok commented Feb 23, 2019

Additionally I needed to replace open(init_path) by init_path.open() to be compatible with python3.5. Otherwise the travis check would fail.

@FabriceSalvaire FabriceSalvaire added this to the V1.3 milestone Mar 9, 2019
def build(self, ground=0):

subcircuit = SubCircuit(self._name, self._nodes)
subcircuit = SubCircuit(self._name, *self._nodes)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 0b02963


SIMULATION_TYPE[29] = SIMULATION_TYPE[27]

SIMULATION_TYPE[30] = SIMULATION_TYPE[27]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@FabriceSalvaire
Copy link
Collaborator

Thanks ! fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants