Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NishchayKarle authored Feb 21, 2024
1 parent dc21e06 commit 39566b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Command Line Tool app tutorial
# CWLApp tutorial

Command Line Tool is a python app that allows you to integrate CWL 'CommandLineTool' files with parsl.
CWLApp is a python app that allows you to integrate CWL 'CommandLineTool' files with parsl.

Parsl is a python parallel scripting library.

Expand All @@ -27,9 +27,9 @@ outputs:
type: stdout
```
### Creating a CommandLineTool app
### Creating a CWLApp
```python
from cwl import CommandLineTool
from cwl import CWLApp

# app takes one argument - path to cwl file
echo = CWLApp("echo.cwl")
Expand All @@ -43,9 +43,9 @@ echo <message>
```

---
### Running CommandLineTool app with Parsl
### Running CWLapp app with Parsl

CWLApp uses Parsl's bash_app internally for running the CommandLineTools and returns a DataFuture.
CWLApp uses Parsl's bash_app internally for running the CWLapps and returns a DataFuture.

DataFutures represent the files produces by execution of an asynchronous app. Parsl’s dataflow model, in which data flows from one app to another via files, requires such a construct to enable apps to validate creation of required files and to subsequently resolve dependencies when input files are created. When invoking an app, Parsl requires that a list of output files be specified (using the ```outputs``` keyword argument). A DataFuture for each file is returned by the app when it is executed. Throughout execution of the app, Parsl will monitor these files to 1) ensure they are created, and 2) pass them to any dependent apps.

Expand Down Expand Up @@ -329,4 +329,4 @@ wc(

with open("wc_stdout.txt", "r") as f:
print(f.read())
```
```

0 comments on commit 39566b5

Please sign in to comment.