Changeset 851 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 17, 2016, 11:15:12 AM (9 years ago)
Author:
lfita
Message:

Changing in `singleline_printing_class' separation character between attribute name and its value by '='

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r850 r851  
    3939# radius_dist: Function to generate a matrix with the distance at a given point
    4040# significant_decomposition: Function to decompose a given number by its signifcant potencies
     41# singleline_printing_class: Function to print all the values of a given class in a single line to be parseavel
    4142# subbasin_point: Function to provide sub-basins given a grid point following a matrix of trips
    4243# unitsdsDate: Function to know how many units of time are from a given pair of dates
     
    29782979    """ Function to print all the values of a given class in a single line to be parseavel
    29792980      output as: 'singleline_printing_class[attrval]';'[attrval]';'...
    2980         [attrval] = @'[attribute]'@:'[value]('!' for spaces)
     2981        [attrval] = @'[attribute]'@='[value]('!' for spaces)
    29812982    """
    29822983    fname='singleline_printing_class'
     
    29862987
    29872988    for attrcls in valscls:
    2988         sline = sline + '@' + attrcls + '@:' + str(valscls[attrcls]).replace(' ','!') + ";"
     2989        sline = sline + '@' + attrcls + '@=' + str(valscls[attrcls]).replace(' ','!') + ";"
    29892990
    29902991    print sline
Note: See TracChangeset for help on using the changeset viewer.