Skip to content

Shallow copy connectors

Etienne Lac requested to merge shallow-copy-connectors into master

Description

Use of copy.deepcopy in Connector.transfer is too conservative, and prevents connections between ports containing non-copyable data.

This revision defines copy.copy (shallow copy) as the default behaviour.

Side changes

Minor refactoring:

  • Factorize duplicated code and use plain assertions in test_cleandirty.py
  • Remove unnecessary method ExtensiblePort.__init__ (inherited from base class).
  • Account for a change of exception type raised by numpy, from versions 1.20 to 1.21.
Edited by Etienne Lac

Merge request reports