[GRASS-SVN] r64962 - in grass-promo/grassposter/2015_EGU_G7_Python: . listings

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 31 13:36:02 PDT 2015


Author: wenzeslaus
Date: 2015-03-31 13:36:02 -0700 (Tue, 31 Mar 2015)
New Revision: 64962

Added:
   grass-promo/grassposter/2015_EGU_G7_Python/listings/gunittest.tex
Modified:
   grass-promo/grassposter/2015_EGU_G7_Python/listings/grass_module.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/grass_module_cli.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_doc_sc_syntax.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_doc_syntax.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_raster_examples.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/script_doc_syntax.tex
   grass-promo/grassposter/2015_EGU_G7_Python/listings/tgrass_examples.tex
   grass-promo/grassposter/2015_EGU_G7_Python/main.tex
Log:
finish testing box, improve highlights


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/grass_module.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/grass_module_cli.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native

Added: grass-promo/grassposter/2015_EGU_G7_Python/listings/gunittest.tex
===================================================================
--- grass-promo/grassposter/2015_EGU_G7_Python/listings/gunittest.tex	                        (rev 0)
+++ grass-promo/grassposter/2015_EGU_G7_Python/listings/gunittest.tex	2015-03-31 20:36:02 UTC (rev 64962)
@@ -0,0 +1,24 @@
+% taken from grass-promo/grassposter, written by me I think
+
+\documentclass{standalone}
+
+\usepackage[active,tightpage]{preview}
+\usepackage{listings}
+\PreviewEnvironment{lstlisting}
+
+\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
+
+\input{listings_settings}
+
+\begin{document}
+
+\begin{lstlisting}[language=Python,linewidth=44.2em]
+# run the series interpolation module in a highly controlled way
+self.assertModule('r.series.interp',
+                  input=['prec_1', 'prec_5'], datapos=(0.0, 1.0),
+                  output=['prec_2', 'prec_3', 'prec_4'],
+                  samplingpos=(0.25, 0.5, 0.75), method='linear')
+# check the interpolated raster prec_2 for minimum and maximum (same here)
+self.assertRasterMinMax(map='prec_2', refmin=200, refmax=200)
+\end{lstlisting}
+\end{document}  
\ No newline at end of file


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/gunittest.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_doc_sc_syntax.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_doc_syntax.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/pygrass_raster_examples.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/script_doc_syntax.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/listings/tgrass_examples.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native

Modified: grass-promo/grassposter/2015_EGU_G7_Python/main.tex
===================================================================
--- grass-promo/grassposter/2015_EGU_G7_Python/main.tex	2015-03-31 19:09:29 UTC (rev 64961)
+++ grass-promo/grassposter/2015_EGU_G7_Python/main.tex	2015-03-31 20:36:02 UTC (rev 64962)
@@ -82,7 +82,6 @@
        \includegraphics[width=\logowidth]{iwmi}
 
        \logovspace
-       % TODO: TICSA logo (Soeren)
        \includegraphics[width=2\logowidth]{ti}
        \logohspace
        \includegraphics[width=1.2\logowidth]{ctu_prague}
@@ -93,7 +92,6 @@
 
        \includegraphics[width=1.5\logowidth]{fem_cri}
        \logohspace
-       % TODO: GNLST logo (Peter)
        \includegraphics[width=3\logowidth]{tib}
     \end{minipage}%
     \hfill
@@ -191,11 +189,14 @@
 % \begin{itemize}
 \renewcommand{\item}{\par\vspace{0.8ex}}
 \item GRASS GIS \cite{Neteler2012} is a platform for geospatial computations.
-\item GRASS GIS used directly using Python or GUI or through other software such as QGIS or R.
-\item GRASS GIS ecosystem supports code maintenance.
+% \item GRASS GIS used directly using Python or GUI or through other software.
 \item The functionality is divided into set of modules (individual tools, functions, algorithms or models).
 \item Core libraries and algorithms implemented in C for high performance.
-\item The system together with the broad community ensures long term preservation of algorithms.
+\item Python APIs for GRASS GIS are an interface for both the modules and the library.
+\item Standardization of inputs and interface serves as a tool for integration a sharing.
+\item Other Python tools such as NumPy or IPython can be used together with GRASS GIS.
+% \item The system together with the broad community ensures long term preservation of algorithms.
+% \item GRASS GIS ecosystem supports code maintenance.
 % \end{itemize}
 }
 
@@ -276,7 +277,7 @@
 	\bigskip
 	%\includegraphics[width=0.5\linewidth, clip, trim=0 0 0 0]{pygrass_ipython_cli}
 	\centering
-	\includegraphics[width=0.95\linewidth, clip, trim=0 120 0 0]{ipython_nb}
+	\includegraphics[width=0.95\linewidth, clip, trim=0 145 0 0]{ipython_nb}
 }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -297,7 +298,24 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \block{\blocktitlewrap{Testing the code}}{
-\cite{Petras2014}
+% To facilitate the development of the module, GRASS GIS provides
+% a Python library for testing (Petras and Gebbert, 2014)
+% which helps researchers to ensure the robustness of the
+% algorithm, correctness of the results in edge cases
+% as well as the detection of changes in results due to new
+% development.
+
+To show that all promised functionality is available and algorithm works as expected
+every module should be supplied with a test.
+This also ensures that functionality
+can be simply tested any time in the future \cite{Petras2014}.
+
+\includegraphics[width=\linewidth, clip, trim=0 5 0 0]{gunittest}
+
+% Tests can be written to check the numerical results but also general functionality
+% such as if different parameters are accepted.
+Tests can use standardize datasets or use custom reference data.
+Basic tests can also just look at the statistical summary of a result.
 }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Property changes on: grass-promo/grassposter/2015_EGU_G7_Python/main.tex
___________________________________________________________________
Added: svn:mime-type
   + text/x-tex
Added: svn:keywords
   + Author Date Id
Added: svn:eol-style
   + native



More information about the grass-commit mailing list