@@ -0,0 +1,481 @@
+class UniformExchange(object):%0A    def __init__(self, A):%0A        if not isinstance(A, (float, int)) or A %3C= 0:%0A            raise ValueError('Exchange constant A must be a positive float/int.')%0A        else:%0A            self.A = A%0A%0A    def get_mif(self):%0A        # Create mif string.%0A        mif = '# UniformExchange%5Cn'%0A        mif += 'set A %7B%7D%5Cn'.format(self.A)%0A        mif += 'Specify Oxs_UniformExchange %7B%5Cn'%0A        mif += '%5CtA $A%5Cn'%0A        mif += '%7D%5Cn%5Cn'%0A%0A        return mif%0A

Add UniformExchange class.