mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-05 05:33:55 +01:00
Set other value to max bit shifts 1 << 31
This commit is contained in:
parent
387981c6a8
commit
91d7ed72f5
@ -5,7 +5,8 @@ class excitationTypes {
|
|||||||
static get nPis() { return new excitationType(1 << 3, String.raw`n \rightarrow \pi^\star`) }
|
static get nPis() { return new excitationType(1 << 3, String.raw`n \rightarrow \pi^\star`) }
|
||||||
static get Single() { return new excitationType(1 << 4, "S") }
|
static get Single() { return new excitationType(1 << 4, "S") }
|
||||||
static get Double() { return new excitationType(1 << 5, "D") }
|
static get Double() { return new excitationType(1 << 5, "D") }
|
||||||
static get Others() { return new excitationType(1 << 6, String.raw`\mathrm{Others}`) }
|
// Max bit shifts is 31 because int are int32 So 1 << 31 are -2147483648
|
||||||
|
static get Others() { return new excitationType(1 << 31, String.raw`\mathrm{Others}`) }
|
||||||
static get All() {
|
static get All() {
|
||||||
var lst = []
|
var lst = []
|
||||||
for (const prop of Object.getOwnPropertyNames(excitationTypes)) {
|
for (const prop of Object.getOwnPropertyNames(excitationTypes)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user