- Timestamp:
- Jun 14, 2013, 9:13:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/function_utils.py
r8879 r8920 5 5 from anuga.fit_interpolate.interpolate import Modeltime_too_early 6 6 from anuga.fit_interpolate.interpolate import Modeltime_too_late 7 8 import warnings 9 #warnings.filterwarnings('default') 7 10 8 11 def determine_function_type(function): … … 40 43 function(t) 41 44 except: 42 print 'problem calling with one scalar argument'45 #print 'problem calling with one scalar argument' 43 46 msg = 'Input argument cannot be called as f(t), f(x,y) or f(x,y,t)' 44 47 raise Exception, msg … … 66 69 else: 67 70 # Pass control to default left function 71 72 warnings.warn('Using default_left_value') 68 73 if callable(default_left_value): 69 74 result = default_left_value(t) … … 77 82 else: 78 83 # Pass control to default right function 84 85 warnings.warn('Using default_right_value') 79 86 if callable(default_right_value): 80 87 result = default_right_value(t)
Note: See TracChangeset
for help on using the changeset viewer.