Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dREL. #511

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix dREL. #511

wants to merge 2 commits into from

Conversation

jamesrhester
Copy link
Contributor

A number of problems have accumulated in the dREL methods and functions in the current dictionary, fixed in this pull request:

  • dREL for atom_site_aniso.matrix_beta referred to undefined variable 'b' instead of 'a'
  • newlines cannot appear inside single-quote delimited strings
  • removed newlines in unusual places
  • must use uppercase when extracting atom type from atom label

James.Hester added 2 commits January 16, 2025 17:31
- dREL for atom_site_aniso.matrix_beta referred to 'b' instead of 'a'
- newlines cannot appear inside single-quote delimited strings
- removed newlines in unusual places
- must use uppercase when extracting atom type from atom label
Copy link
Collaborator

@vaitkus vaitkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

[ 0, 0, c.reciprocal_length_c ]])
_cell.convert_Uij_to_betaij =
1.4142 * Pi * Matrix([[ c.reciprocal_length_a, 0, 0 ],
[0, c.reciprocal_length_b, 0 ],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[0, c.reciprocal_length_b, 0 ],
[ 0, c.reciprocal_length_b, 0 ],

@@ -27613,11 +27613,13 @@ save_function.atomtype

m = Len(s)
n = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the 'n' variable is no longer needed at all.

If(n == 5) dummy = print('illegal translation in symmetry
xyz') s[axis,3] = Mod(10.+ Float(sign*m)/Float(n), 1.)
If (inum == 1 and c != '/')
dummy = print('illegal num in symmetry xyz')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dummy = print('illegal num in symmetry xyz')
dummy = print('illegal num in symmetry xyz')

If (m > 3 and s[3] in '+-' ) n = 4
f = ""
if (m > 0) f += Upper(s[0])
If (m > 1 and s[1] not in '0123456789') f += s[1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe s[1] should be lowercased in case we have something like "FE+2"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants