Changeset 25012
- Timestamp:
- 06/11/20 12:11:08 (5 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 3 edited
-
classes/pairoptions.py (modified) (3 diffs)
-
classes/plotoptions.py (modified) (3 diffs)
-
miscellaneous/PythonFuncs.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/pairoptions.py
r24269 r25012 10 10 """ 11 11 12 def __init__(self, * arg): # {{{12 def __init__(self, *arg): # {{{ 13 13 self.functionname = '' 14 14 self.list = OrderedDict() … … 23 23 pass #Do nothing, 24 24 else: 25 self.buildlist(* arg)25 self.buildlist(*arg) 26 26 # }}} 27 27 … … 38 38 # }}} 39 39 40 def buildlist(self, * arg): # {{{40 def buildlist(self, *arg): # {{{ 41 41 """BUILDLIST - build list of objects from input""" 42 42 -
issm/trunk-jpl/src/m/classes/plotoptions.py
r24269 r25012 8 8 9 9 Usage: 10 plotoptions = plotoptions(* arg)10 plotoptions = plotoptions(*arg) 11 11 ''' 12 12 13 def __init__(self, * arg): # {{{13 def __init__(self, *arg): # {{{ 14 14 self.numberofplots = 0 15 15 self.figurenumber = 1 16 16 self.list = OrderedDict() 17 17 18 self.buildlist(* arg)18 self.buildlist(*arg) 19 19 #}}} 20 20 … … 33 33 #}}} 34 34 35 def buildlist(self, * arg): #{{{35 def buildlist(self, *arg): #{{{ 36 36 #check length of input 37 37 if len(arg) % 2: … … 39 39 40 40 #go through args and build list (like pairoptions) 41 rawoptions = pairoptions.pairoptions(* arg)41 rawoptions = pairoptions.pairoptions(*arg) 42 42 numoptions = int(len(arg) / 2) 43 43 rawlist = [] # cannot be a dict since they do not support duplicate keys -
issm/trunk-jpl/src/m/miscellaneous/PythonFuncs.py
r24213 r25012 2 2 3 3 4 def logical_and_n(* arg):4 def logical_and_n(*arg): 5 5 6 6 if len(arg): … … 14 14 15 15 16 def logical_or_n(* arg):16 def logical_or_n(*arg): 17 17 18 18 if len(arg):
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)