-
Notifications
You must be signed in to change notification settings - Fork 0
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
SOF-6927: update libs for spin magnetic calculation #64
Conversation
d4384b3
to
b0ff637
Compare
b0ff637
to
515b139
Compare
static atomSymbolsWithLabels(material) { | ||
const symbols = material.Basis.elementsArray; | ||
const labels = material.Basis.atomicLabelsArray; | ||
const elmWithLabel = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elements
labels
elementsWithLabels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can put elementsWithLabels in Basis
@@ -127,6 +158,12 @@ export class QEPWXContextProvider extends mix(ExecutableContextProvider).with( | |||
const filename = pseudo?.filename || path.basename(pseudo?.path || ""); | |||
return el ? s.sprintf("%s %f %s", symbol, el.atomic_mass, filename) : undefined; | |||
} | |||
|
|||
static symbolToAtomicSpecieWithLabels(symbol, pseudo, label = "") { | |||
const el = PERIODIC_TABLE[symbol]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elementAndPseudoToAtomicSpecieWithLabels
static symbolToAtomicSpecieWithLabels(symbol, pseudo, label = "") { | ||
const el = PERIODIC_TABLE[symbol]; | ||
const filename = pseudo?.filename || path.basename(pseudo?.path || ""); | ||
return el ? s.sprintf("%s%s %f %s", symbol, label, el.atomic_mass, filename) : undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
return s.sprintf("%s%s %f %s", symbol, label, el?.atomic_mass, filename || '');
No description provided.