Skip to content

Commit

Permalink
Revise part02 of the "workflows" programmers' tutorial.
Browse files Browse the repository at this point in the history
In particular, change the "Lena" picture with a picture of a butterfly.
  • Loading branch information
riccardomurri committed Nov 13, 2016
1 parent 67e30e9 commit b4a3074
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/programmers/tutorials/workflows/part02.pdf
Binary file not shown.
32 changes: 19 additions & 13 deletions docs/programmers/tutorials/workflows/part02.tex
Expand Up @@ -86,7 +86,7 @@ \part{Concepts and glossary}

\+ \alert{\texttt{Resource}s are the computing infrastructures \\ where GC3Pie executes applications.}

\+ Resources include: your laptop, the ``Hydra'' cluster, the Science Cloud, Amazon AWS.
\+ Resources include: your laptop, the ``Hydra'' cluster, the Science Cloud, Amazon EC2.
\end{frame}


Expand All @@ -113,7 +113,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
version='1.0')
def new_tasks(self, extra):
return []
apps_to_run = [ ]
return apps_to_run
\end{python}
\end{column}
\begin{column}{0.3\linewidth}
Expand Down Expand Up @@ -169,7 +170,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
version='1.0')
def new_tasks(self, extra):
return []
apps_to_run = [ ]
return apps_to_run
\end{python}
\end{column}
\begin{column}{0.4\linewidth}
Expand Down Expand Up @@ -203,7 +205,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
version='1.0')
def new_tasks(self, extra):
return []
apps_to_run = [ ]
return apps_to_run
\end{python}
\end{column}
\begin{column}{0.4\linewidth}
Expand Down Expand Up @@ -235,7 +238,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
version='1.0')
def new_tasks(self, extra):
return []
apps_to_run = [ ]
return apps_to_run
\end{python}
\end{column}
\begin{column}{0.4\linewidth}
Expand Down Expand Up @@ -266,7 +270,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
~\HL{version='1.0'}~)
def new_tasks(self, extra):
return []
apps_to_run = [ ]
return apps_to_run
\end{python}
\end{column}
\begin{column}{0.4\linewidth}
Expand Down Expand Up @@ -297,7 +302,8 @@ \part{Workflow scaffolding}
super(AScript, self).__init__(
version='1.0')
def new_tasks(self, extra):
~\HL{return []}~
~\HL{apps\_to\_run = [ ]}~
~\HL{return apps\_to\_run}~
\end{python}
\end{column}
\begin{column}{0.4\linewidth}
Expand Down Expand Up @@ -350,14 +356,14 @@ \part{The \texttt{Application} object}
\begin{frame}[fragile]
\frametitle{A basic example: grayscaling}
\begin{sh}
$ convert lena.jpg -colorspace gray lena-gray.jpg
$ convert pm.jpg -colorspace gray gray-pm.jpg
\end{sh}%$
\begin{tabular}{ccc}
{\includegraphics[width=0.4\linewidth]{fig/lena.jpg}}
{\includegraphics[width=0.4\linewidth]{fig/butterfly.jpg}}
&
{\includegraphics[width=0.1\linewidth,totalheight=0.45\textheight]{fig/arrow.pdf}}
{\includegraphics[width=0.1\linewidth,totalheight=0.25\textheight]{fig/arrow.pdf}}
&
{\includegraphics[width=0.4\linewidth]{fig/gray-lena.jpg}}
{\includegraphics[width=0.4\linewidth]{fig/gray-butterfly.jpg}}
\end{tabular}
\end{frame}
Expand Down Expand Up @@ -738,11 +744,11 @@ \part{The \texttt{Application} object}
one instance of it (as in the previous slide).
\+
Can you convert the \href{https://raw.githubusercontent.com/uzh/gc3pie/training-july-2016/docs/programmers/tutorials/workflows/lena.jpg}{\texttt{lena.jpg}} file to gray-scale using
Can you convert the \href{https://raw.githubusercontent.com/uzh/gc3pie/training-july-2016/docs/programmers/tutorials/workflows/butterfly.jpg}{\texttt{butterfly.jpg}} file to gray-scale using
this GC3Pie script?
\+ \footnotesize
{\em (You can download the code for \texttt{GrayscaleApp} and the ``Lena'' image file from
{\em (You can download the code for \texttt{GrayscaleApp} and the ``butterfly'' image file from
\href{https://raw.githubusercontent.com/uzh/gc3pie/training-july-2016/docs/programmers/tutorials/workflows/}{this
URL}.)}
\end{exercise*}
Expand Down

0 comments on commit b4a3074

Please sign in to comment.