Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme and fix tests #1

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Welcome to AiiDA WorkGraph Web UI!
[![PyPI version](https://badge.fury.io/py/aiida-workgraph-web-ui.svg)](https://badge.fury.io/py/aiida-workgraph-web-ui)
[![Docs status](https://readthedocs.org/projects/aiida-workgraph-web-ui/badge)](http://aiida-workgraph-web-ui.readthedocs.io/)
[![Unit test](https://github.com/aiidateam/aiida-workgraph-web-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/aiidateam/aiida-workgraph-web-ui/actions/workflows/ci.yml)


Web UI to visualize and manage the AiiDA WorkGraph.

## Frontend
Use `rete-kit` to create the frontend, using `react`

Expand Down
1 change: 0 additions & 1 deletion aiida_workgraph_web_ui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__version__ = "0.1.0"
2 changes: 0 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#
import os
import sys
import shutil
from pathlib import Path

sys.path.insert(0, os.path.abspath("../.."))

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ requires-python = ">=3.9"
dependencies = [
"numpy~=1.21",
"scipy",
"ase",
"aiida-core>=2.3",
"aiida_workgraph",
"cloudpickle",
"fastapi",
"uvicorn",
Expand Down
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest
from aiida_workgraph import WorkGraph

pytest_plugins = "aiida.tools.pytest_fixtures"


@pytest.fixture
def wg_calcfunction() -> WorkGraph:
"""A workgraph with calcfunction."""

wg = WorkGraph(name="test_debug_math")
sumdiff1 = wg.add_task("workgraph.test_sum_diff", "sumdiff1", x=2, y=3)
sumdiff2 = wg.add_task("workgraph.test_sum_diff", "sumdiff2", x=4)
wg.add_link(sumdiff1.outputs[0], sumdiff2.inputs[1])
return wg
Loading