(Un)expected behaviour when using `bind` and `from PyConf.Algorithms import algorithm` in different files
I replaced
from Configurables import FTRawBankDecoder
FTDecoding = make_algorithm(FTRawBankDecoder)
with
from PyConf.Algorithms import FTRawBankDecoder
in module Hlt1Conf.reconstruction
.
Then I am using
from PyConf.Algorithms import FTRawBankDecoder
with FTRawBankDecoder.bind(DecodingVersion = 4):
...
in an options file. In this case the decoding version is not updated as a different instance is created as is used to define the data-flow in Hlt1Conf.reconstruction
.
Doing
from Hlt1Conf.reconstruction import FTRawBankDecoder
with FTRawBankDecoder.bind(DecodingVersion = 4):
...
solves the issue.
Question is, is that a behaviour we expect or should also the first version work?