-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdictionaries.py
86 lines (77 loc) · 3.36 KB
/
dictionaries.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
RETURNABLES = {\
'NodeID':'Tipbase',
'AtomStateID':'AtomState.id',
'AtomSymbol':'Atom.atomicion.isotope.chemicalelement.elementsymbol',
'AtomInchi' : 'Atom.atomicion.inchi',
'AtomInchiKey' : 'Atom.atomicion.inchikey',
'AtomSpeciesID':'Atom.atomicion.id',
'AtomNuclearCharge':'Atom.atomicion.isotope.chemicalelement.nuclearcharge',
'AtomIonCharge':'Atom.atomicion.ioncharge',
'AtomMassNumber':'Atom.atomicion.isotope.massnumber',
'AtomStateRef':'AtomState.Sources',
'AtomStateEnergy':'AtomState.stateenergy',
'AtomStateEnergyUnit':'AtomState.stateenergyunit.value',
'AtomStateParity' : 'AtomState.parity.value',
'AtomStateMixingCoeff':'Component.mixingcoefficient',
'AtomStateMixingCoeffClass' : 'Component.mixingclass.value',
'AtomStateLifeTime': 'AtomState.lifetime',
'AtomStateStatisticalWeight' : 'AtomState.statisticalweight',
'AtomStateStatisticalWeightUnit' : 'AtomState.statisticalweightunit.value',
'AtomStateLifeTimeUnit': 'AtomState.lifetimeunit.value',
'AtomStateLifeTimeDecay':'totalRadiative',
'AtomStateIonizationEnergy' : 'AtomState.ionizationenergy',
'AtomStateIonizationEnergyUnit' : 'AtomState.ionizationenergyunit.value',
'AtomStateTotalAngMom' : 'AtomState.totalangularmomentum',
'AtomStateTermLabel' : 'Component.termlabel',
'AtomStateConfigurationLabel' : 'Component.configuration',
'AtomStateTermLSL' : 'Component.Lscoupling.l',
'AtomStateTermLSS' : 'Component.Lscoupling.s',
'AtomStateTermLSMultiplicity' : 'Component.Lscoupling.multiplicity',
'CollisionTabulatedDataRef' : 'TabData.Sources',
'CollisionTabulatedDataXDataList' : 'TabData.xdata',
'CollisionTabulatedDataXUnits' : 'TabData.xdataunit.value',
'CollisionTabulatedDataXDataListN' : 'TabData.get_xdata_length()',
'CollisionTabulatedDataXParameter' : 'undef',
'CollisionTabulatedDataYDataList' : 'TabData.ydata',
'CollisionTabulatedDataYUnits' : 'TabData.ydataunit.value',
'CollisionTabulatedDataYDataListN' : 'TabData.get_ydata_length()',
'CollisionTabulatedDataYParameter' : 'undef',
'CollisionDataSetDescription' : 'DataSet.dataDescription',
'CollisionReactantState' : 'Reactant.state_id()',
'CollisionReactantSpecies' : 'Reactant.species_id()',
'CollisionProductState' : 'Product.state_id()',
'CollisionID' : 'CollTran.id',
'ParticleSpeciesID' : 'Particle.species_id()',
'ParticleName' : 'Particle.name',
'ParticleMass' : 'Particle.mass',
'ParticleMassUnit' : 'Particle.massunit.value',
'ParticleCharge' : 'Particle.charge',
#source
'SourceTitle':'Source.title',
'SourceAuthorName':'Source.Authors',
'SourceCategory':'Source.sourcecategory.value',
'SourceName' : 'Source.sourcename',
'SourceYear' : 'Source.year',
'SourceURI': 'Source.uri',
'SourceVolume' : 'Source.volume',
'SourcePageBegin' : 'Source.pagebegin',
'SourcePageEnd' : 'Source.pageend',
'SourceDOI' : 'Source.doi',
'SourceID' : 'Source.id',
}
# The restrictable dictionary defines limitations to the search.
# The left-hand side is standardized, the righ-hand size should
# be defined in Django query-language style, where e.g. a search
# for the Species.atomic field would be written as species__atomic.
RESTRICTABLES = {\
'IonCharge' : 'ioncharge',
'AtomNuclearCharge' : 'nuclearcharge',
'AtomSymbol' : 'elementsymbol',
'target.IonCharge' : 'ioncharge',
'target.AtomNuclearCharge' : 'nuclearcharge',
'target.AtomSymbol' : 'elementsymbol',
'ParticleName': 'collider__name',
'collider.ParticleName': 'collider__name',
#'ParticleName' : 'electron',
}