Skip to content

asche1/mantid-non-aligned-axes-symops

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mantid-non-aligned-axes-symops

To think about

  1. Switch to using SymmetryOperationFactory for generating symmetry operation vectors instead of manually storing matrices and carring out matrix multiplication. See here. However, note that when you call function subscribedSymbols(), you'll see that not all symmetry operations are listed. A way around this is to register all symmetry operations beforehand (that is, in PyInit section of the algorithm).
  2. Instead of having the user to enter the space group, create a list of all symmetry operations (there are only a few dozen or so), and allow the user to select them through a GUI.
  3. Normalization.

Work in-progress

  1. Handling exceptions. Would eventually need to make appropriate changes to MantidKernal/Exception.h.
  2. Make the code more user-friendly by allowing users to select which symmetry operations they want to use through a GUI. Look at VisibleWhenProperty and EnabledWhenProperty. Current version of Mantid source code doesn't allow multiple property settings, and only the last one is used. Any way around this issue?
  3. Write test cases.

Symmetry operations

The space group generators list was extracted from Bilbao, and it was seen that there are some operations missing in Mantid; and also that there are some operations present in Mantid that aren't in the Bilbao file. Possible reason? Bilbao has a total of 83 operations while Mantid has 70.

Operations in Bilbao but not in Mantid are

-y+1/2,x,z
x+1/2,y,z+1/2
-x+3/4,y,-z+3/4
y+3/4,x+1/4,-z+1/2
y+1/2,x+1/2,-z
-x+3/4,y+1/2,-z+1/4
-y,x+1/2,z+1/2
x+1/2,y+1/2,z+1/2
x,y+1/2,z+1/2
-x+3/4,-y+3/4,z
-y+1/4,x+3/4,z+1/4
y+3/4,x+1/4,-z
-x+1/4,y+1/2,-z+3/4
-x+1/2,y,-z
-x+3/4,-y+1/4,z+1/2
-y+3/4,x+1/4,z+1/4
x,-y+1/2,z
x+2/3,y+1/3,z+1/3
-y+1/2,x,z+1/2
x+1/2,y+1/2,z
-x+1/4,-y+3/4,z+1/2

Operations in Mantid but not in Bilbao are

-x+1/2,y,-z+1/4
-x+1/2,-y+1/2,-z
-x,-y+1/2,-z+1/2
-x,-y+1/2,-z+1/4
-x+3/4,-y+3/4,-z+3/4
-x+1/4,-y+1/4,-z+1/4
-x+1/2,-y+1/2,-z+1/2
x,-y,-z

Running the code

Load the script in Mantid, and execute it. After execution, you should see SpaceGroupSymOps in the algorithm selector box under the section PythonAlgorithms. After you've loaded all data files and have a MDWorkspace, run the algorithm by double-clicking on the name.

Alternately, you can use the command-line. See this for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.6%
  • C++ 19.8%
  • Makefile 1.6%