#Rtriple5Model = STO(0,5) | threelayer*5 | onelayer*5 | threelayer*5 | air Ftriple5Model = STO(0, 1.5) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | air # Loading data pth = os.getcwd() PLP = Platypus() print(os.path.join(pth, r'superlattice\Triple5data\T5unpol.dat')) probe = PLP.load( r'C:\Users\oliver\OneDrive - UNSW\code\jackson_superlattice\superlattice\Triple5data\T5unpol\OP_diff-ev\T5unpol.dat' ) # Fitting parameters ''' threelayer[0].thickness.pmp(1) threelayer[1].thickness.pmp(5) onelayer[0].thickness.pmp(1) onelayer[1].thickness.pmp(5) threelayer[0].interface.range(0,1) threelayer[1].interface.range(0,1) onelayer[0].interface.range(0,1) onelayer[1].interface.range(0,1)
5) | threelayer * 5 | onelayer * 5 | threelayer * 5 | air Ftriple5Model = STO(0, 1.5) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | air # Loading data pth = os.getcwd() PLP = Platypus() probe = PLP.load( os.path.join( pth, r'C:\Users\Jackson\Desktop\a\superlattice\program\Jackson\Triple5data\T5unpol\T5unpol.dat' )) # Fitting parameters threelayer[0].thickness.pmp(1) threelayer[1].thickness.pmp(5) onelayer[0].thickness.pmp(1) onelayer[1].thickness.pmp(5) threelayer[0].interface.range(0, 1) threelayer[1].interface.range(0, 1)
p[45], p[44], LNO_lyrs_mag3[0] ) | LSMO( p[47], p[46], LSMO_lyrs_mag[11] ) | LNO( p[49], p[48], LNO_lyrs_mag3[1] ) | LSMO( p[51], p[50], LSMO_lyrs_mag[12] ) | LNO( p[53], p[52], LNO_lyrs_mag3[2] ) | LSMO( p[55], p[54], LSMO_lyrs_mag[13] ) | LNO( p[57], p[56], LNO_lyrs_mag3[3] ) | LSMO( p[59], p[58], LSMO_lyrs_mag[14] ) | LNO( p[61], p[60], LNO_lyrs_mag3[4] ) | air # define experiment based off best fit experiment = p_fit.fitness # Load the data pth = os.getcwd() PLP = Platypus() data_dir = r'C:\Users\oliver\OneDrive - UNSW\code\jackson_superlattice\superlattice\Triple5data\1 Tesla' probe = PLP.load_magnetic(pp=os.path.join(data_dir, 'c_PLP0045024PolCorr.dat'), pm=os.path.join(data_dir, 'c_PLP0045021PolCorr.dat'), mp=None, mm=os.path.join(data_dir, 'PLP0045020PolCorr.dat') ) for magl in LSMO_lyrs_mag: magl.rhoM.range(0,4) magl.interface_above.range(0,6) for magl in LNO_lyrs_mag1: magl.rhoM.range(0,1) magl.interface_above.range(0,6) for magl in LNO_lyrs_mag2:
import os.path from numpy.testing import assert_equal, assert_almost_equal from refl1d.anstodata import Platypus # path to the test file pth = os.path.dirname(__file__) PLP = Platypus() probe = PLP.load(os.path.join(pth, 'c_PLP0000708.dat')) assert_equal(probe.Q.size, 90) assert_almost_equal(probe.dQ[0], 0.000319677 / 2.3548)
#Rtriple5Model = STO(0,5) | threelayer*5 | onelayer*5 | threelayer*5 | air Ftriple5Model = STO(0, 1.5) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO(3.85, 2) | LSMO( 34.1, 2) | LNO(3.85, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | LSMO( 34.1, 2) | LNO(11.5, 2) | LSMO(34.1, 2) | LNO( 11.5, 2) | LSMO(34.1, 2) | LNO(11.5, 2) | air # Loading data pth = os.getcwd() PLP = Platypus() probe = PLP.load(os.path.join(pth, 'T5unpol.dat')) # Fitting parameters ''' threelayer[0].thickness.pmp(1) threelayer[1].thickness.pmp(5) onelayer[0].thickness.pmp(1) onelayer[1].thickness.pmp(5) threelayer[0].interface.range(0,1) threelayer[1].interface.range(0,1) onelayer[0].interface.range(0,1) onelayer[1].interface.range(0,1) Rtriple5Model[0].interface.range(0,1) Rtriple5Model[1].interface.range(0,1)