This configuration should first import the cell_types dict from ref1.yaml and then be merged the imported my_cell of ref2.yaml
The sub files are correctly imported but the first merge with ref1 overrides the cell_types dictionary reference that is used by ref2. Hence, when the dict from ref2 is merged with the root, the final cell_types dictionary looks like this:
This configuration should first import the
cell_types
dict fromref1.yaml
and then be merged the importedmy_cell
ofref2.yaml
The sub files are correctly imported but the first merge withref1
overrides thecell_types
dictionary reference that is used byref2
. Hence, when the dict fromref2
is merged with the root, the finalcell_types
dictionary looks like this:The function
merge
from each type should return the original instance of the node to prevent reference errors.