The docs say it takes a float but I try something like img.window_floor(0.3) and get ‘TypeError: ImagePhantomBase.window_floor() takes 1 positional argument but 2 were given’
It needs to return a number and it doesn’t take input and is defined in a custom class. E.g.
class MyPhantom(LasVegas): # or whatever planar imaging
def window_floor(self):
return 0.3
myphantom = MyPhantom(‘path/to/file’) # use as normal
floor = myphantom.window_floor() # will result in 0.3
In the signature you linked the empty parenthesis means it doesn’t take arguments when called. The arrow means it will return the type(s) listed. In this case, it’s supposed to return a float or None