Ignore:
Timestamp:
02/19/14 16:16:49 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aeres/scripts/aeresrh.py

    r325 r352  
    11#!/usr/bin/env python 
    2 # -*- coding: iso-8859-1 -*- 
     2# -*- coding: utf-8 -*- 
    33 
    44""" 
     
    1515.. option:: --ifile <file> 
    1616 
    17       file to read 
     17   file to read 
    1818 
    1919.. only:: man 
    2020 
    21     Figure is visible on PDF and HTML documents only. 
    22  
    23     .. only:: html or latex 
    24  
    25        .. graphviz:: 
    26  
    27           digraph aeresrh { 
    28                  rh [shape=diamond, 
    29                      fontname=Courier, 
    30                      label='{ifile}' 
    31  
    32                  aeresrh [shape=box, 
    33                      fontname=Courier, 
    34                      color=blue, 
    35                      URL="http://forge.ipsl.jussieu.fr/pulsation/browser/trunk/aeres/scripts/aeresrh.py", 
    36                      label="${PROJECT}/aeres/scripts/aeresrh.py"]; 
    37              } 
     21   Figure is visible on PDF and HTML documents only. 
     22 
     23   .. only:: html or latex 
     24 
     25      .. graphviz:: 
     26 
     27         digraph aeresrh { 
     28                rh [shape=diamond, 
     29                    fontname=Courier, 
     30                    label='{ifile}' 
     31 
     32                aeresrh [shape=box, 
     33                    fontname=Courier, 
     34                    color=blue, 
     35                    URL="http://forge.ipsl.jussieu.fr/pulsation/browser/trunk/aeres/scripts/aeresrh.py", 
     36                    label="${PROJECT}/aeres/scripts/aeresrh.py"]; 
     37            } 
    3838 
    3939SEE ALSO 
     
    5050======== 
    5151 
    52 :: 
    53  
    54  aeresrh.py --ifile ${PROJECT}/data/aeresrh.xls 
    55  
    56  aeresrh.py --ifile ${HOME}/Downloads/personnel_francoise.xls 
     52.. code-block:: bash 
     53 
     54   aeresrh.py --ifile ${PROJECT}/data/aeresrh.xls 
     55 
     56   aeresrh.py --ifile ${HOME}/Downloads/personnel_francoise.xls 
    5757 
    5858TODO 
     
    6666 
    6767comment j'ai la liste des gens partis au 30 juin 2012 avec 
    68 publication (retraite, decès, mutation) 
     68publication (retraite, décÚs, mutation) 
    6969 
    7070test with real file (encoding, francais, etc) 
     
    8383- fplod 20120426 
    8484 
    85   * big process in dictionnary using itertools 
     85  * big process in dictionary using itertools 
    8686 
    8787- fplod 20120410 
    8888 
    8989  * real titles 
    90   * start dictionnary 
     90  * start dictionary 
    9191 
    9292- fplod 20120409 
     
    101101- fplod 20120405 
    102102 
    103   * gestion des temps (arrivée, départ) (to be cont.) 
     103  * gestion des temps (arrivée, départ) (to be cont.) 
    104104  * creation draft 
    105105    thanks to http://www.portailsig.org/content/python-lire-et-ecrire-des-fichiers-microsoft-excel-application-quantum-gis 
     
    181181        print('sheets name %s' % ( wb.sheet_names())) 
    182182 
    183     # lecture des données dans la première feuille 
     183    # lecture des données dans la premiÚre feuille 
    184184    sh = wb.sheet_by_index(0) 
    185185 
     
    221221    # detect firstname column 
    222222    for colnum in range(sh.ncols): 
    223         if sh.col_values(colnum)[titlerow] == u'Prénom': 
     223        if sh.col_values(colnum)[titlerow] == u'Prénom': 
    224224            colfirstname = colnum 
    225225    if is_verbose == True: 
Note: See TracChangeset for help on using the changeset viewer.