File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -90,18 +90,12 @@ export class HubbardUContextProvider extends mix(JSONSchemaFormDataProvider).wit
90
90
return sortArrayByOrder ( valenceOrbitals , this . orbitalListByStability ) ;
91
91
} ;
92
92
93
- getElementSymbol = ( elementWithLabel ) => {
94
- // exclude single digit label in the end of symbol if present
95
- // 1 is added to the label below to take care of possible label 0
96
- return parseInt ( elementWithLabel . slice ( - 1 ) , 10 ) + 1
97
- ? elementWithLabel . slice ( 0 , - 1 )
98
- : elementWithLabel ;
99
- } ;
100
-
101
93
orbitalDependencyArray = ( elementList , atomicSpecies , atomicOrbital ) => {
102
94
return {
103
95
oneOf : elementList . map ( ( elementWithLabel ) => {
104
- const orbitals = this . getValenceOrbitals ( this . getElementSymbol ( elementWithLabel ) ) ;
96
+ const orbitals = this . getValenceOrbitals (
97
+ this . material . Basis . stripLabelToGetElementSymbol ( elementWithLabel ) ,
98
+ ) ;
105
99
return {
106
100
properties : {
107
101
[ atomicSpecies ] : {
You can’t perform that action at this time.
0 commit comments