Changeset 982 in lmdz_wrf for trunk/tools
- Timestamp:
- Aug 9, 2016, 11:17:15 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r980 r982 7913 7913 def str_list(string, cdiv): 7914 7914 """ Function to obtain a list from a string givin a split character 7915 string= Strring from which to obtain a list 7915 string= Strring from which to obtain a list ('None' for None) 7916 7916 cdiv= character to use to split the string 7917 7917 >>> str_list('1:@#:$:56', ':') … … 7925 7925 listv = string.split(cdiv) 7926 7926 else: 7927 listv = [string] 7927 if srting == 'None': 7928 listv = None 7929 else: 7930 listv = [string] 7928 7931 7929 7932 return listv
Note: See TracChangeset
for help on using the changeset viewer.