Closed samskiter closed 1 year ago
I was able to solve this issue by implementing the dunder method __deepcopy__
to the Fluid
class. Inside this method, a new Fluid
instance is created with the same attributes as the original object to be copied and then returned.
More fixes for the duplicate method on Conduit - the deepcopy also navigates into Loops Nodes and eventually stumbles into CoolProps. I'm not sure it's really the right thing to recreate the start and end nodes anyway.
In the case of _create_loops I just had to reorder the statements such that when the copy happens, there are no loops on the conduit... but the net effect should be the same