- Timestamp:
- Jun 7, 2010, 1:04:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r7772 r7800 149 149 else: 150 150 return format % float(value) 151 152 153 #################################################################################154 # OBSOLETE STUFF155 #################################################################################156 157 # @note TEMP158 def angle(v1, v2):159 """Temporary Interface to new location"""160 161 import anuga.utilities.numerical_tools as NT162 163 msg = 'angle has moved from util.py. '164 msg += 'Please use "from anuga.utilities.numerical_tools import angle"'165 warn(msg, DeprecationWarning)166 167 return NT.angle(v1, v2)168 169 170 # @note TEMP171 def anglediff(v0, v1):172 """Temporary Interface to new location"""173 174 import anuga.utilities.numerical_tools as NT175 176 msg = 'anglediff has moved from util.py. '177 msg += 'Please use "from anuga.utilities.numerical_tools import anglediff"'178 warn(msg, DeprecationWarning)179 180 return NT.anglediff(v0, v1)181 182 # @note TEMP183 def point_on_line(*args, **kwargs):184 """Temporary Interface to new location"""185 186 msg = 'point_on_line has moved from util.py. '187 msg += 'Please use "from anuga.geometry.polygon import point_on_line"'188 warn(msg, DeprecationWarning)189 190 return utilities.geometry.point_on_line(*args, **kwargs)191 192 193 # @note TEMP194 def inside_polygon(*args, **kwargs):195 """Temporary Interface to new location"""196 197 log.critical('inside_polygon has moved from util.py.')198 log.critical('Please use '199 '"from anuga.utilities.polygon import inside_polygon"')200 201 return geometry.polygon.inside_polygon(*args, **kwargs)202 203 204 # @note TEMP205 def outside_polygon(*args, **kwargs):206 """Temporary Interface to new location"""207 208 log.critical('outside_polygon has moved from util.py.')209 log.critical('Please use '210 '"from anuga.geometry.polygon import outside_polygon"')211 212 return geometry.geometry.outside_polygon(*args, **kwargs)213 214 215 # @note TEMP216 def read_polygon(*args, **kwargs):217 """Temporary Interface to new location"""218 219 log.critical('read_polygon has moved from util.py.')220 log.critical('Please use '221 '"from anuga.geometry.polygon import read_polygon"')222 223 return geometry.geometry.read_polygon(*args, **kwargs)224 225 226 # @note TEMP227 def populate_polygon(*args, **kwargs):228 """Temporary Interface to new location"""229 230 log.critical('populate_polygon has moved from util.py.')231 log.critical('Please use '232 '"from anuga.utilities.polygon import populate_polygon"')233 234 return utilities.geometry.populate_polygon(*args, **kwargs)235 236 237 #################################################################################238 # End of obsolete stuff ?239 #################################################################################240 241 # @note TEMP242 def start_screen_catcher(dir_name, myid='', numprocs='', extra_info='',243 verbose=False):244 """Temporary Interface to new location"""245 from anuga.shallow_water.data_manager import start_screen_catcher \246 as dm_start_screen_catcher247 248 log.critical('start_screen_catcher has moved from util.py.')249 log.critical('Please use "from anuga.shallow_water.data_manager import '250 'start_screen_catcher"')251 252 return dm_start_screen_catcher(dir_name, myid='', numprocs='',253 extra_info='', verbose=False)254 255 256 151 257 152 ##
Note: See TracChangeset
for help on using the changeset viewer.