MetaCell / MetaCell/scidash-api

some issues running test-suite-upload-from-sciunit.ipynb

Open
#39 10 comments 0 reactions 1 assignee Claimed by @NeZanyat View on GitHub
Dominant language
Jupyter Notebook
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I encountered the following issues running **test-suite-upload-from-sciunit.ipynb**.
(I was using dev branch for sciunit and I saw it has substantial changes compared to master, so It would be a good idea to revisit this example ones the dev branch PR is merged)

in [22] -> *models[1].set_attrs({'izhikevich2007Cell':{'a':'0.04 per_ms'}})*
```Traceback (most recent call last):
File "test_suit.py", line 19, in
models[1].set_attrs({'izhikevich2007Cell':{'a':'0.04 per_ms'}})
TypeError: set_attrs() takes 1 positional argument but 2 were given
```
workaround : remove attr

in [34] -> *test2 = AnotherTest(observation={'mean':3, 'std':8, ...)*
```
NameError: name 'AnotherTest' is not defined
```
So, replace AnotherTest with **TestFromJupyterNotebook()**

in [39] -> *responses = client_instance.upload_suite_score(suite, score_matrix)*
```
ERROR:scidash_api.mapper:CLIENT -> INVALID DATA: {'sort_key': ['required field']}
```
Workaround: adding keys manually.

in [39] -> *responses = client_instance.upload_suite_score(suite, score_matrix)*
```
{'errors': {'model_instance': {'run_params': ['Not a valid string.']}, 'score_class': {'url': ['Enter a valid URL.']}}, 'success': False}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.