Skip to content
Snippets Groups Projects
Commit 4699b1b9 authored by Sujen Shah's avatar Sujen Shah
Browse files

Add test notebook

parent 5eb62083
Branches main
No related tags found
No related merge requests found
%% Cell type:code id:b83e0e2f tags:
``` python
from maap.maap import MAAP
maap = MAAP(maap_host='api.ops.maap-project.org')
```
%% Cell type:code id:69ad563c tags:
``` python
maap.listAlgorithms().text
```
%% Cell type:code id:eb28870f tags:
``` python
dir(maap)
```
%% Cell type:code id:2cc54436 tags:
``` python
maap.describeAlgorithm(algoid="run-dps-test_ubuntu:main").text
```
%% Cell type:code id:13996097 tags:
``` python
params = {"input_file": "https://raw.githubusercontent.com/MAAP-Project/maap-jupyter-ide/master/README.md"}
```
%% Cell type:code id:977d8c34 tags:
``` python
submit_job_result = maap.submitJob(identifier="dps-unit-test",
algo_id="run-dps-test_ubuntu",
version="main",
username="sshah",
queue="maap-dps-worker-8gb",
# Args that match yaml
**params)
```
%% Cell type:code id:03045725 tags:
``` python
submit_job_result
```
%% Cell type:code id:4bf4bf0b tags:
``` python
maap.getJobStatus(submit_job_result.get("job_id")).text
```
%% Cell type:code id:9263f7ad tags:
``` python
maap.getJobResult(submit_job_result.get("job_id")).text
```
%% Cell type:code id:78e69d58 tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment