Still had issues with _rand

This commit is contained in:
Dominik Moritz Roth 2023-01-06 17:27:08 +01:00
parent e0f4aa3c13
commit db6cdeed21

View File

@ -564,9 +564,9 @@ class ColumbusConfigDefined(ColumbusEnv):
else:
v = v_raw
if k.endswith('_rand'):
print('_rand!')
v = self.conv_unit(
v_raw, target='px', axis='y' if k == 'height_rand' else 'x')
if isinstance(v, int):
print('int!')
n = k.replace('_rand', '')
cur = getattr(
entity, n)