From 5ccfc10bc341d81b262d0806236e8ca0770bfa98 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 2 May 2017 07:28:19 +0200 Subject: [PATCH] currently not used and error prone (from math import cos/sin/tan gives different behavior) --- lib/damask/util.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/damask/util.py b/lib/damask/util.py index 2949d259c..42cb82729 100644 --- a/lib/damask/util.py +++ b/lib/damask/util.py @@ -100,15 +100,6 @@ def execute(cmd, if process.returncode != 0: raise RuntimeError('{} failed with returncode {}'.format(cmd,process.returncode)) return out,error - -# ----------------------------- -# Matlab like trigonometric functions that take and return angles in degrees. -# ----------------------------- -for f in ['cos', 'sin', 'tan']: - exec('def %sd(deg): return (np.%s(np.deg2rad(deg)))'%(f,f)) - exec('def a%sd(val): return (np.rad2deg(np.arc%s(val)))'%(f,f)) - - # ----------------------------- def gridLocation(idx,res): return ( idx % res[0], \