How to use window_floor() in planar imaging

Excuse my ignorance, but how do I go about utilising the window_floor() in planar imaging?
Planar Imaging - pylinac 3.12.0 documentation

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’

Not sure how to use it, sorry!

Thanks for any help.

Ben

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