Skip to content

Define working example of whole project (from project creation to workflow execution). #39

Closed
@tcompa

Description

@tcompa

It would be useful to have a working example of an entire project (from its creation to workflow execution), to simplify debugging when something goes wrong (like the ModuleNotFoundError: No module named 'wrappers.compressionTaskWrap error found by @gusqgm today, but it could be something else).

By looking at the README, a list of instructions would look like this (from the mwe_fractal/fractal folder):

poetry install
mkdir -p ../test-proj
echo {"datasets": {"dstest": {"resources": ["absolute/path/of/resource"], "type": "tif"}}, "workflows": {}} > ../test-proj/mwe-test.json
poetry run python fractal_cmd.py project new mwe-test ../test-proj dstest
poetry run python fractal_cmd.py dataset add-resources mwe-test dstest absolute/path/of/resource
poetry run python fractal_cmd.py dataset update-type mwe-test dstest tif
poetry run python fractal_cmd.py task add compression_tif tif tif
poetry run python fractal_cmd.py workflow new mwe-test wftest compression_tif
poetry run python fractal_cmd.py apply test_apply.json

I need some help to complete this list and turn it into something fully working. This requires at least specifying a path where I can find some appropriate resources (in the fractal_cmd.py dataset add-resources line), and possibly also specifying some more information in test_apply.json. Any other tip is welcome.

After I figure out how it works, I can turn it into a test script and add it to the CI (more precisely: to that part of the CI which is currently only run locally on pelkmanslab, as it requires access to the data folder and to a slurm cluster).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions