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

Task Generation #2

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
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
36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
# Intent of this template
### Contents

The intent of this repo is to help you get started with creating Pydra tasks.
All tasks will be inserted into pydra.tasks.<yourtaskpackagename> namespace.
* `xmls`: a directory containing all the xmls from which pydra tasks should be generated.
* `generate_tasks.py`: the script which automatically generates pydra tasks.

# To use this template:
### How to use

1. Click on new repo.
2. Select this template from the repository template drop down list.
3. Give your repo a name.
4. Once the repo is created and cloned, search for TODO (`grep -rn TODO . `) and
replace with appropriate name.
5. One of the folders is called TODO. This should also be renamed to your package
name.
6. Add tasks to the pydra/tasks/<yourpackagename> folder.
7. You may want to initialize a sphinx docs directory.

# TODO: Change this README after creating your new repo.
`tools/generate_tasks.py` takes 2 optional arguments: the `output directory` and the `xml directory`.

```bash
python tools/generate_tasks.py [output directory] [xml directory]
```

## For developers
* `output directory`: the directory that the generated tasks should be rooted at.
If omitted the current working directory is used.
* `xml directory`: a directory which contains xmls. The names of the xmls must match the names in module_list.
If omitted binary files are used which must be found on the default path.

Install repo in developer mode from the source directory. It is also useful to
install pre-commit to take care of styling via black:
### Command to use

```
pip install -e .[dev]
pre-commit install
```bash
python tools/generate_tasks.py pydra/tasks/sem/ tools/xmls/
```
Loading