-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PEP8 fixes. Moved two_origin_choice to materials.symbols
- Loading branch information
Showing
5 changed files
with
143 additions
and
129 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,8 @@ | |
zeros_3x1 = np.zeros((3, 1)) | ||
zeros_6x1 = np.zeros((6, 1)) | ||
|
||
# reference beam direction and eta=0 ref in LAB FRAME for standard geometry | ||
'''reference beam direction and | ||
eta=0 ref in LAB FRAME for standard geometry''' | ||
beam_vec = -lab_z | ||
eta_vec = lab_x | ||
|
||
|
@@ -162,7 +163,9 @@ | |
3628800.]).astype(np.complex128) | ||
|
||
""" | ||
>> @AUTHOR: Saransh Singh, Lawrence Livermore National Lab, [email protected] | ||
>> @AUTHOR: Saransh Singh, | ||
Lawrence Livermore National Lab, | ||
[email protected] | ||
>> @DATE: 11/28/2022 SS 1.0 original | ||
>> @DETAILS: constants for rodrigues FZ | ||
""" | ||
|
@@ -177,7 +180,9 @@ | |
) | ||
|
||
''' | ||
>> @AUTHOR: Saransh Singh, Lawrence Livermore National Lab, [email protected] | ||
>> @AUTHOR: Saransh Singh, | ||
Lawrence Livermore National Lab, | ||
[email protected] | ||
>> @DATE: 10/28/2020 SS 1.0 original | ||
>> @DETAILS: constants for sphere sectors used for IPF coloring | ||
''' | ||
|
@@ -263,7 +268,8 @@ def set_numba_cache(): | |
4. The NUMBA_CACHE_DIR environment variable is not defined | ||
If all of these are true, then numba will try to write to a | ||
directory where it doesn't have permission, and cause the application to | ||
directory where it doesn't have permission, | ||
and cause the application to | ||
freeze. Avoid that by setting the cache dir ourselves. | ||
""" | ||
|
||
|
@@ -316,8 +322,10 @@ def is_writable_file(path): | |
cRestmass = 9.1093837090E-31 | ||
|
||
''' | ||
adding another parametrization of the scattering factors. these are more recent | ||
and more accurate. also used in Vesta (copied from there). see: | ||
adding another parametrization of the | ||
scattering factors. these are more recent | ||
and more accurate. also used in Vesta | ||
(copied from there). see: | ||
New Analytical coherent Scattering-Factor Functions for Free Atoms and Ions | ||
BY D. WAASMAIER AND A. KIRFEL | ||
|
@@ -638,7 +646,9 @@ def is_writable_file(path): | |
'Cf': ['0'] | ||
} | ||
''' | ||
this dictionary tabulates the small nuclear Thomson term fNT for all elements up to Z=92 | ||
this dictionary tabulates the small | ||
nuclear Thomson term fNT for all | ||
elements up to Z=92 | ||
''' | ||
fNT = { | ||
'H':-0.00054423,'He':-0.00054817,'Li':-0.00071131,'Be':-0.00097394,'B':-0.0012687,'C':-0.0016442,'N':-0.0019191,'O':-0.0021944, | ||
|
@@ -737,8 +747,10 @@ def is_writable_file(path): | |
229 | ||
]) | ||
|
||
''' this variable encodes all the generators (including translations) for all 230 space groups | ||
will be used to compute the full space group symmetry operators | ||
''' this variable encodes all the generators | ||
(including translations) for all 230 space groups | ||
will be used to compute the full space group symmetry | ||
operators | ||
''' | ||
SYM_GL = [ | ||
"000 ", "100 ", "01cOOO0 ", | ||
|
@@ -996,8 +1008,10 @@ def is_writable_file(path): | |
} | ||
|
||
''' | ||
this dictionary contains the generators encoded in each letter of the generator string | ||
the full symmetry is generated by the repeated action of the generator matrix | ||
this dictionary contains the generators encoded | ||
in each letter of the generator string | ||
the full symmetry is generated by the repeated | ||
action of the generator matrix | ||
''' | ||
|
||
''' rotational, inversions, mirrors etc. components | ||
|
@@ -1100,49 +1114,21 @@ def is_writable_file(path): | |
SYM_GENERATORS['Y'] = -1./4. | ||
SYM_GENERATORS['Z'] = -1./8. | ||
|
||
''' this dictionary contains the space group numbers | ||
which have two origin choices the two values are the | ||
site symmetries of the origin. There are 24 such space | ||
groups | ||
''' | ||
two_origin_choice = { | ||
48 : ['222', '-1'], | ||
50 : ['222/n', '-1'], | ||
59 : ['mm2/n', '-1'], | ||
68 : ['222', '-1'], | ||
70 : ['222', '-1'], | ||
85 : ['-4', '-1'], | ||
86 : ['-4', '-1'], | ||
88 : ['-4', '-1'], | ||
125: ['422', '2/m'], | ||
126: ['422/n', '-1'], | ||
129: ['-4m2', '2/m'], | ||
130: ['-4/ncn', '-1'], | ||
133: ['-4121/c', '-1'], | ||
134: ['-42m', '2/m'], | ||
137: ['-4m2/n', '-1'], | ||
138: ['-4cg', '2/m'], | ||
141: ['-4m2', '2/m'], | ||
142: ['-4c21', '-1'], | ||
201: ['23', '-3'], | ||
203: ['23', '-3'], | ||
222: ['432', '-3'], | ||
224: ['-43m', '-3m'], | ||
227: ['-43m', '-3m'], | ||
228: ['23', '-3'], | ||
} | ||
|
||
|
||
''' | ||
@AUTHOR Saransh Singh, Lawrence Livermore National Lab, [email protected] | ||
@AUTHOR Saransh Singh, | ||
Lawrence Livermore National Lab, | ||
[email protected] | ||
@DATE 11/23/2020 SS 1.0 original | ||
@DETAIL. this list of symbols will help us to genrate the point group symmetries | ||
in the cartesian space for any point group. this is needed for the | ||
supergroup symmetry usd in the coloring scheme used in the package. this | ||
needs to be a separate set of routines because the supergroup can be a | ||
point group which is not the laue group of the crystal (e.g. m-3 --> m-3m) | ||
the notation used will be the same as the one used for the space group | ||
without any translations. | ||
@DETAIL. this list of symbols will help us to genrate | ||
the point group symmetries in the cartesian | ||
space for any point group. this is needed for | ||
the supergroup symmetry usd in the coloring | ||
scheme used in the package. this needs to be a | ||
separate set of routines because the supergroup | ||
can be a point group which is not the laue group | ||
of the crystal (e.g. m-3 --> m-3m) the notation | ||
used will be the same as the one used for the | ||
space group without any translations. | ||
''' | ||
SYM_GL_PG = { | ||
'c1': '1a', # only identity rotation | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.