aglie / yell Goto Github PK
View Code? Open in Web Editor NEWThe program for PDF analysis of diffuse scattering from single crystals
The program for PDF analysis of diffuse scattering from single crystals
Introduce proper files for LSQ weights, file that scales reciprocal space, the one for resolution effects. Names should be clear so that it is obvious what to write there.
Now redefinition of variables in input file does not work.
example:
Cell 4 4 1 90 90 90
DiffuseScatteringGrid -2 -2 0 0.1 0.1 1 40 40 1
InitialParams 1 1 2 3 4 5 6 7 8 9
PointGroup -1
CalculationMethod direct
Refine false
RecalculateAverage true
DumpPairs true
UnitCell
[
Var=Variant[
(p=0.5)
C1 1 ~i 0 0 1 1 1 0 0 0
[
C2 1 1 0 0 1 1 1 0 0 0
]
]
]
Modes
[]
Correlations
[
[(0,0,0)
substitutional_correlation(Var,Var,0.5)
]
]
In a separate file.
It only averages a hexagon, not the whole map.
Options:
Program a nice set of functions for handling multiple levels of output.
Make it testable.
Also make it shut up for tests!
reject say m3mk
The separate file could have a fixed name like 'variables.txt' or be called by a keyword like variables = variables.txt
Now we have a toggle between automatic multiplicity for caleidoscopic Laue Groups. It is little bit inconsistent for rotational axes and center of inversion. Should we turn it off whatsoever?
or degrees.
a=8.247;
b=2.9345;
c=4.6361;
Cell a b c 90. 90. 90.
step_a=0.065976;
step_b=1./3.;
step_c=0.0370888;
start_a=-9.038712;
start_b=-8./3.;
start_c=-5.0811656;
DiffuseScatteringGrid start_a start_b start_c step_a step_b step_c 274 16 274
InitialParams 0.055715 0.38668 0.244463 0.163527 0.027291 0.0418286 0.0270311 0.030538
horiz_0p5_0_0=~i;
horiz_1_0_0=~i;
horiz_1p5_0_0=~i;
horiz_0_0_1=~i;
horiz_0p5_0_1_short=~i;
horiz_0p5_0_1_long=~i;
horiz_1_0_1=~i;
PointGroup mmm
CalculationMethod direct
Refine false
FFTGridSize 16 16 16
As_x=0.25;
As_y=0.44774;
As_z=0.03948;
As_ADP_iso=0.01140;
As_m_y=1.-As_y;
DumpPairs true
UnitCell
[
As = Variant
[
(p=0.333333333333)
As1=[
As 1 As_x As_y As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x As_m_y+1 As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
(p=0.333333333333)
As2=[
As 1 As_x As_y+1 As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x As_m_y+2 As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
(p=0.333333333333)
As3=[
As 1 As_x As_y+2 As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x As_m_y As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
]
As_b = Variant
[
(p=0.333333333333)
As1b=[
As 1 As_x+1/2 As_y -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x+1/2 As_m_y+1 -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
(p=0.333333333333)
As2b=[
As 1 As_x+1/2 As_y+1 -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x+1/2 As_m_y+2 -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
(p=0.333333333333)
As3b=[
As 1 As_x+1/2 As_y+2 -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
As 1 As_x+1/2 As_m_y -As_z As_ADP_iso As_ADP_iso As_ADP_iso 0 0 0
]
]
]
Modes
[
]
Correlations
[
[
(0,0,0)
multiplicity 1.
substitutional_correlation(As, As,
1/3, 0,
0, 1/3)
]
[
(0,3,0)
multiplicity 1.
substitutional_correlation(As, As,
1/3, 0,
0, 1/3)
]
]
Pij>0 Uij positively defined, constraints on SE are satisfied
(not only along main axes)
not sure what that means though
Write matlab scripts so that users could modify the .h5 files.
to something reasonable
If not show warning or error, depending on periodic boundary conditions
It now uses matrices for real space even in reciprocal space and screws up the six-fold rotation in FFT calculation method
both in direct and reciprocal space. also grids etc
Now atom probability does not change anything since it is redefined by the Variant.
Add log sqrt pow sin cos exp mod abs
Now average structure is initialized with all-zeroes
Now the symmetry does not expand there
Tests show that it is ok, but it seems like I was using the wrong algorithms up till now. Check on some example.
Program accepts Void as an atomic type. Check that this atom does what expected.
as a consequence refinement of only the scale factor is not possible
semms to be difficult to reproduce
Also iteration-wise
Right now fft mode will show a cut through PDF space, not a projection!!
what P(1,3) means exactly? is it V1 V3 pair or V3V1 pair?
sqrt is not complex and log is non zero. In case this happens, report error.
Namely, allow -3m:H as alias for -3mH. Also 2/m:b instead of 2/mb
Should do it like in say shelx. Once the scale factor is known, divide experimental data by scale and save to experiment.h5 or create "scaled_experiment.h5"
a,b,c, angles in both spaces and metric tensors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.