Skip to content

get_array not working

The following does not work (I think it should as the documentation of that function suggests):

import toolbox_scs as tb 
run, _ = tb.load(2719, 179)
v = tb.get_array(run, 'PP800_DelayLine', 0.006)

and result in:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-7-c6aa195dc7d7> in <module>
----> 1 v = tb.get_array(run, 'PP800_DelayLine', 0.006)

~/notebooks/ToolBox/src/toolbox_scs/load.py in get_array(run, mnemonic_key, stepsize)
    310         elif mnemonic_key in _mnemonics:
    311             mnem = _mnemonics[mnemonic_key]
--> 312             data = run.get_array(*mnem.values())
    313         else:
    314             raise ToolBoxValueError("Invalid mnemonic", mnemonic_key)

AttributeError: 'tuple' object has no attribute 'values'

Also, get array documentation needs to be updated since the example show load_run which does not exist anymore.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information