You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instantiate a layer class to be called in your main script
layer=Layer()
print(layer.integer)
Execute the script in bash
Expected Behavior (correct)
Paramater should print out as a rounded integer (~1)
Current Behavior (incorrect)
Traceback (most recent call last):
File "tests/createlayer.py", line 25, in
layer.interger = "1.2"
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/descriptor.py", line 133, in set
v = self.preprocess(value, obj)
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/processors.py", line 34, in call
return self.process(value, obj)
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/processors.py", line 93, in process
return self.cast_type(value)
ValueError: invalid literal for int() with base 10: '1.2'
The text was updated successfully, but these errors were encountered:
Title
Preprocessor not parsing values correctly
Steps to reproduce
Expected Behavior (correct)
Paramater should print out as a rounded integer (~1)
Current Behavior (incorrect)
Traceback (most recent call last):
File "tests/createlayer.py", line 25, in
layer.interger = "1.2"
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/descriptor.py", line 133, in set
v = self.preprocess(value, obj)
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/processors.py", line 34, in call
return self.process(value, obj)
File "/home/johannes/Documents/latestspira 17jul/spira-master/spira/core/parameters/processors.py", line 93, in process
return self.cast_type(value)
ValueError: invalid literal for int() with base 10: '1.2'
The text was updated successfully, but these errors were encountered: