Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from ase import Atom | |
| from spinw import Lattice, Interaction | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| """ | |
| % Matlab code | |
| linipo = spinw; | |
| linipo.genlattice('lat_const', [10.02 5.86 4.68],'sym','P n m a'); | |
| linipo.addatom('r',[1/4 1/4 0],'S',1,'label','MNi2','color','b') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/+sw_tests/+unit_tests/unittest_ndbase_optimisers.m b/+sw_tests/+unit_tests/unittest_ndbase_optimisers.m | |
| index 5f6d9f5..9ec3ffe 100644 | |
| --- a/+sw_tests/+unit_tests/unittest_ndbase_optimisers.m | |
| +++ b/+sw_tests/+unit_tests/unittest_ndbase_optimisers.m | |
| @@ -59,25 +59,25 @@ classdef unittest_ndbase_optimisers < sw_tests.unit_tests.unittest_super | |
| function test_optimise_rosen_upper_bound_minimum_not_accessible(testCase, optimiser) | |
| [pars_fit, cost_val, ~] = optimiser([], testCase.rosenbrock, [-1,-1], 'ub', [0, inf]); | |
| testCase.verify_val(pars_fit, [0, 0], 'abs_tol', 1e-3); | |
| - testCase.verify_val(cost_val, 1, 'abs_tol', 2e-3); | |
| + testCase.verify_val(cost_val, 1, 'abs_tol', 1e-4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC | |
| C | |
| C SUBROUTINE TIKEDA(S1,S2,B1,B2,EMOD,EI,TAUSQR) | |
| C ============================================= | |
| C Works out the variance of the moderator pulse for a moderator | |
| C described by an Ikeda-Carpenter time pulse. Answer in sec**2. | |
| C | |
| C S1 constant in expression for macroscopic xsect R*8 | |
| C of moderator. Units: m**-1 | |
| C S2 gradient of wavelength**2 in expression for xsect R*8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P)h>@6aWAK2mk;8Api<NgOR}s005^T001BW003WjZESOCXKrD1b#i5MFLP;UaA9L>VP|D?X=g5YZEVe%S#z7p5`h1T%Xy@1b|g}9PKiw*7O_f5FDV4WBC&}b{rZb+$MHGIz4tgvl~pbo%``pJAKlZ;^ryduEWPPKRVPLMaEsm}w>Kd7iy+CPhg-)M?&h~Qb>roMmlipAxE(=#d-K=lPgWA;Uei|KMhYHoUw)OIfAS(wC(-TAq&cr2ZsVpYKf-X|_xC-1UsMr{AqWB^G&~6eljMinCv_l@^00W*ZLF6UdE$F%a`BqU0u?lI5!@`&sHl=A&VHoEHm{mc*yP!}N!6W?68YV=1;J7B7Jg;gztQ%n3L(Bu>MkoP@S&=`yE^tr6uas(K?te|D!8%768sy>)`uhTo7)@5lpbzBB!T`!^||@;CoY)~H*cKYG=mS{CiSFZ<E1V5tgUAIi;x&0aT@VzuKHe*W!sV>7~9>h+ek-AhhZ0bNR*8Z6FSVDmXZ&*+e0b)*jgr(-Xxfy#8e31lH24$bTw%_JbZ#*kMaqA0Wn>Fd*H8tKMA^<!rJIz-Qy7}W1X$r1J(36yf3Rmu=Gt@NyC*+vvHh2^E5T8btvJ<0f$*?zHdOYS51^M1?G4bympDq(g+sM*xEU;$VIIi%~rN;pr;#Vq_vqZ9$HMy#{?EE-f3HY1|7{s-nur;mC7#jb5XB0DWim17!{)*IYYd%jp1_M;o2bR9kC1$cNc~{yK6xgl|UcHqwL$pc8yu5mBH)Ug5gs+mUMWzu{K?_610ZN;wrUZCxD~FfGigWbQdC<O}pNEnZ`6eq#b9)N-PyZKeuQ&A&2>8D$cmm%=3$`GJ;`KRem=*rZ^U38qUu&yHHby*mVfXCr!O!1UFSNfm8Q~7CkMlkK-SpKRr3rV+8-x$)3XSV;Ou4#oCWS=GFH_3G%5oEUL_F>PI(w4*RRSQE-q%N#mt=_1DoRk5#=q2`5*09Sx7(4d1K0y@0dl{`*PsUu=;#Aa5R{#VgBn3h--i!(ATSPeaCiQJw1 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| O<Iru0{{R31ONa4|Nj60xBvhE00000KmY&$0000000000000000000000000000000000000000009614j;M>0JI6sA-Dld%^_51X>%ZOa&KpHVQnB|VQy}3bRc47AaZqXAZczOL{C#7ZEs{{E)5L|Bme*a00000P8W`o3U=VY3U=VY3U=VY9v$Ps0CwQO9v$St8Ft{n9v$Vuy>{Tht_bA88+PEpt_b770CwQOt_bD9RCeIN9v$Jq2X^4V3U=YZ!*<}n5DDeM33lMX5D6c^3wGeZ3U+tE3wGeZ5DDVJ3wGeZQfXso3U=VY0000000000P(=U$WQGR-?I_bO0000000000@BktJ3jz)#06Yu;0CWWa00000*oy@K01yBG0000$0RR9101yBG00IC21^@s6000001^@s60000003Z?o00aO4&Px&i0svrv000040000001yBG00000000mG0000001yBG00000000005C8xG0000000000;L{EOi~s-t01yxWi1Gmd08kGAB&YxY0J0GPC@BB{01y%YBo6=pymSo!Z~y=R000000000000000000000000000000z>*9AKmh;%000000000008k77a0UPXywVN;KmY&$00000000000000000000E_7vhbN~PVygCd301yBG06Yu;00aO4000000000000000AOHYhE^=gHbYTDhGMWMa08k770Gt8<06+`?000000000000000KmY(hE@WYJVE_OCkWl~t0Pqd~04M+e0Nf4$000000000000000KmY*1E^uUFbYTDhB&YxY08kGA0IC2000a*J000000000000000KmY(hUs6OtR6zg$Tmb+8000mG00IC20Im-J000000000000000KmY(hE^>2nV*mgEi1Gmd01yxW0Q3O>0I&}L000000000000000KmY(hE^=jTZ({%eBo6=p01y%Y01yBG0HhHB000000000000000KmY(j000000000000000000000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P)h>@6aWAK2mk;8Apk)IEtjwg005gH001BW003WjZESOCXKrD1b#i5MFLP;UaA9L>VP|D?X=g5YZEVe%Yjc}87stO!CVj~yfVp>??qDvqvB7`=8^77XAOq%V5I2ANhg_Ow+wMM1+Rnt2aj<mwi}TYt5|Tds)o1Bd3#vLU^1EyN7Q4OzxnBfv9^PHsmVCorU)9jd11~LdaCbd``uggx&!0ANn0v6Pz||tSyMF#vdVb=CppL`qt5G?x@2(>V%a179b=_@8+!j@cPB08ZF%BIKg3<EB^`jgJ7WuJw)op^87kTV^X?*eE=z$7gR0LOi8WvRyqwGgAmU*v)qoyR>j8Zo~PUbiFB^ZHI*XRq^en#y<3M0Qf)J;}Y;6qh=H+AGu_~c&C1V>PfP{EZol;CGPTOUrqhu2rOxwyOj5C{4r)u-ampTu}X3}5+p;}d-N`cRJ&j+ZvzbF7{&ROB<!#PItA&QG|UAf<t-{9uMG4tzK}`xAzl6#B(clhr(rr6m+q+X$VR6maEA7A`(zu$wO1?Vvgw3Rb|4ySq>5%T_+2&mhL@uO0pZ_@m*0*R1|B+vw1u=4*x^_gLF6tJ8AtiYYvB#o0J!{g#)#LU5MIVNc^a-S4wjQKJ=Eq4;9q!<?j!%O;vtb2PTlEZzC83hZ7%RmGn7v@c|vw49!HhdA9-#;L{X+^ptti>w?+jaa?LDk{&ZZ~>^x@~rxb+#M*7+B$U?ySUpGYlm**KF9dnCF1FlL6t>Wm-D<Gglr-^BBg5QFg#I1xZAcDzhzA35W$nwuEX8Q5{r4&EjBc(buDJBm)h|}=J}8hQt6bGC&F58Duik6tezF~ldGhKId9kY4mad|I>ctF=TgudvSm)3OvY|k!J^;HxBHr~N=N5uFr$hb7ge_EPKl(q58d$%=ueLU^^n2e2H9g8ek_BpsaX3F$h`WtC_z5f9*ZjTVEqtgPicQ2ZZsOiVGO<WrvB2}7_q9C$Hy@gUS`8XbfdSbWbtVBRDU}P|0NVT1UY=j7OyPRF~RSX8*TI8c5E{0iYlq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P)h>@EdT%j2mk;8ApnOalmui8005yQ000*N6aZg%ZESOCXKrD1b#i5MFLP;UF)ny*Yykie000000000000000000000L_|NbK1%hfd7ii=aI6tgUF3@N@zg{v>>#>OG?XV0qwi^^;g)A?Ih>s9y?BzT`rI{qweW%x?4Rn{`_~J#8)jSt0+tFu8~{#`U<3O=0$06cdcvO4S9W4)pqLHah8I+>j6~PSAT!`yo-X=uA35Et-QPIr@xTvt5IND-Cc)uoqvL$uIp|)>^3U{2!&x7g6GiK!K<R+uj>aXz+0t$_NvEdJI&I_wd3e)*W<uNP=}d!Ma4l@Ms=9{lNe3CNJ1c$rEf-2H!gywH<vpwh7i}#3yc1Zw0lu7{%ue<Nmhct%F4c}LYqL)i#!$hpd49(D{aWZzp+eqj=-(2uXJ^Fcl}r7DYkpE1MqnJ%V#DEKvlnTc;g8EdLGn+2*ZvW@WoJ;{(4v%(|obl#6+FxLx5^qzjZ|N5Gl=m<{MSJ+=$M!T4IeWQ@v~`XpR#_Md=zU?KTjn9M(s)5tHL0huJz-ws&`*p_f`dLr);a>*oo70sL_|0b1yKr1|GTgwwg>!}A34+5I9F1j{X*%FSea*U<+hgBG2ibW{(?`+64P;oNJrRSaXbRweEk0E2B<VM^^olbQ*RBL~ThKe;Z$6Lws88hqNM6kaZ4Nj1&Ug!PJE;5}c>)>Xp6bl{3SvV~;Rw5cpCS1wNswI(+b7Z?OA>1rbm%agM-`(i3iTcyXP6c@Kug_;M?Q(PB8a%NV7edIxe4|nJ7fFE=TE;ZX>H|aP(w6SdG$Z5-yjf_yqtk(l4F$W$Yh*-(verg^0&9Rr*RSstxQvxPC$qORfY)INX3W`g$*gz&rA1u~=bYxJ*t2_;IfoSlCyIz|!%<lIrXN28lI(`8C`N5&?1NTQKdkDi%x%V83l^cS@u5Pm&q+_d}m5E(f_imOyJbQ7sDda^#RNL`Q^-bI8v7((u{^$xXqv77Wp<9vFC@6Vsza0htO=oEh()vDH>^zUh0KWt`)TZ9 |