Changeset 1994 in lmdz_wrf for trunk/tools/generic_tools.py
- Timestamp:
- Jul 31, 2018, 9:06:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1993 r1994 12005 12005 else: 12006 12006 autoval = [] 12007 for i in range(Nvals): autoval.append(retype(listchk[i], type(alist[0]))) 12007 if len(listchk) == 1: 12008 if listchk[0] != 'auto': 12009 for i in range(Nvals): 12010 autoval.append(retype(listchk[0], type(alist[0]))) 12011 else: 12012 autoval = alist[0:Nvals] 12013 else: 12014 for i in range(Nvals): autoval.append(retype(listchk[i], type(alist[0]))) 12008 12015 12009 12016 return autoval … … 12016 12023 #print auto_val_list('#00FFAA', 3, colorsauto) 12017 12024 #print auto_val_list(['2.3','2','3.4'], 3, np.arange(3.)) 12018 12019 quit()12020 12021 12022 12023 12025 12024 12026 def rectangular_spiral(Ntimes, dunits):
Note: See TracChangeset
for help on using the changeset viewer.