create_RMS_array question


A simple question: I am trying to call the create_RMS_array function in the LogAnalyzer. It is expecting a Sequence[int] as argument. What is the correct way of creating that sequence? I tried typing.Sequence but it is not working.

Can somebody please share a snippet?



Sequence[int] is the signature for what type to expect. After looking at the signature I realized it should actually be a numpy array. I will make a bugfix for that.

See below for an example:

tlog = pylinac.TrajectoryLog.from_demo()
arr = tlog.axis_data.mlc.create_RMS_array(np.array((1, 2, 3, 4))) # leaves you want; these are 1-index based.