# Path: pyfusion/data/base.py
# class BaseCoordTransform(object):
#     """Base class does nothing useful at the moment"""
#     input_coords = 'base_input'
#     output_coords = 'base_output'
# 
#     def transform(self, coords):
#         return coords


from numpy import poly1d,polyval
from pyfusion.data.base import BaseCoordTransform
                     (1.185, 0.7732, 0.289):c2,
                     (1.216, 0.7732, 0.227):c3,
                     (1.198, 0.7732, 0.137):c4,
                     (1.129, 0.7732, 0.123):c5,
                     (1.044, 0.7732, 0.128):c6,
                     (0.963, 0.7732, 0.112):c7,
                     (0.924, 0.7732, 0.087):c8,
                     (0.902, 0.7732, 0.052):c9,
                     (0.900, 0.7732, -0.008):c10,
                     (0.925, 0.7732, -0.073):c11,
                     (0.964, 0.7732, -0.169):c12,
                     (0.897, 0.7732, -0.238):c13,
                     (0.821, 0.7732, -0.221):c14,
                     (0.696, 0.7732, -0.106):c15,
                     (0.652, 0.7732, 0.036):c16,
                     (0.676, 0.7732, 0.193):c17,
                     (0.790, 0.7732, 0.326):c18,
                     (0.806, 0.7732, 0.336):c19,
                     (0.934, 0.7732, 0.383):c20,
                     }

def map_kappa_h_mag_angle(coords, kappa_h):
    kh_angle_poly = poly1d(coil_coef_mapping[coords])
    return polyval(kh_angle_poly, kappa_h)

################################################################
### End of code without unittests ###### #######################
################################################################



# Path: pyfusion/data/base.py
# class BaseCoordTransform(object):
#     """Base class does nothing useful at the moment"""
#     input_coords = 'base_input'
#     output_coords = 'base_output'
# 
#     def transform(self, coords):
#         return coords


# Path: pyfusion/devices/H1/coords.py
from numpy import poly1d,polyval
from pyfusion.data.base import BaseCoordTransform

                     (1.185, 0.7732, 0.289):c2,
                     (1.216, 0.7732, 0.227):c3,
                     (1.198, 0.7732, 0.137):c4,
                     (1.129, 0.7732, 0.123):c5,
                     (1.044, 0.7732, 0.128):c6,
                     (0.963, 0.7732, 0.112):c7,
                     (0.924, 0.7732, 0.087):c8,
                     (0.902, 0.7732, 0.052):c9,
                     (0.900, 0.7732, -0.008):c10,
                     (0.925, 0.7732, -0.073):c11,
                     (0.964, 0.7732, -0.169):c12,
                     (0.897, 0.7732, -0.238):c13,
                     (0.821, 0.7732, -0.221):c14,
                     (0.696, 0.7732, -0.106):c15,
                     (0.652, 0.7732, 0.036):c16,
                     (0.676, 0.7732, 0.193):c17,
                     (0.790, 0.7732, 0.326):c18,
                     (0.806, 0.7732, 0.336):c19,
                     (0.934, 0.7732, 0.383):c20,
                     }

def map_kappa_h_mag_angle(coords, kappa_h):
    kh_angle_poly = poly1d(coil_coef_mapping[coords])
    return polyval(kh_angle_poly, kappa_h)

################################################################
### End of code without unittests ###### #######################
################################################################



class MirnovKhMagneticCoordTransform(BaseCoordTransform):