ARgorithm/toolkit

CLI bug on Submit for Arrays

Closed this issue · 3 comments

Submitting Array based ARgorithms are leading to TESTING FAILED errors, or APPLICATION ERROR (on server side)

import ARgorithmToolkit

def run(**kwargs):
    algo = ARgorithmToolkit.StateSet()
    arr1 = ARgorithmToolkit.Array(name='arr1', data=[1,2,3], algo=algo)
    arr2 = ARgorithmToolkit.Array(name='arr2', data=[2,5], algo=algo)
    arr1.compare(0,1)
    arr2.swap(0,1)
    return algo

Also resubmitting results in TEST PASSED and file on server changes with the failed tests.
This leads to random behaviour.

123

@TheForeverLost submitted the same file and got it to work.
POSSIBLE EXPLANATION : Account privileges.

Also, Array assignment doesn't work because of np.integer type being Unserializable. Changes in Toolkit.Array required.

I relogged in as a new account and it worked

@yatharthmathur
try installing the testpypi version of toolkit and test if it works better for you

$ pip install -i https://test.pypi.org/simple/ ARgorithmToolkit==0.2.0