Skip to content
Snippets Groups Projects

Make emulator configuration less strict, add versioning

Merged Daniel Spitzbart requested to merge quick_fix_emulator into master
3 files
+ 17
12
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 7
6
@@ -7,7 +7,7 @@ from tamalero.Monitoring import Lock
from time import sleep
class Module:
def __init__(self, rb, i=1):
def __init__(self, rb, i=1, strict=False):
# don't like that this also needs a RB
# think about a better solution
map_file = os.path.expandvars(f'$TAMALERO_BASE/configs/module_mapping_v{rb.ver}.yaml')
@@ -31,11 +31,12 @@ class Module:
else:
self.ETROCs.append(
ETROC(
rb=rb,
master=self.config['i2c']['master'],
i2c_channel=self.config['i2c']['channel'],
elink=self.config['elinks'][j],
i2c_adr = self.config['addresses'][j],
rb = rb,
master = self.config['i2c']['master'],
i2c_channel = self.config['i2c']['channel'],
elink = self.config['elinks'][j],
i2c_adr = self.config['addresses'][j],
strict = strict,
))
#def configure(self):
Loading