This page contains the Tapservice Package documentation.
the function that gets a value out of the query set, using the global name and the node-specific dictionary.
The main generator function of XSAMS. This one calls all the sub-generators above. It takes the query sets that the node’s setupResult() has constructed as arguments with given names. This function is to be passed to the HTTP-response object directly and not to be looped over beforehand.
Generator (yield) for the main block of XSAMS for the atoms, with an inner loop for the states. The QuerySet that comes in needs to have a nested QuerySet called States attached to each entry in Atoms.
Collisional transitions. QuerySets and nested querysets: # CollTran # CollTran.Reactants # CollTran.IntermediateStates # CollTran.Products # CollTran.DataSets # DataSet.FitData # FitData.Arguments # FitData.Parameters # DataSet.TabulatedData
Matching loop variables to use: # CollTran # CollTranReactant # CollTranIntermediateState # CollTranProduct # CollTranDataSet # CollTranFitData # CollTranFitDataArgument # CollTranFitDataParameter # CollTranTabulatedData
Generator for the Functions tag
Generator for the MolecularChemicalSpecies
Generator for MolecularState tag
Generator for the methods block of XSAMS
Generator for Molecules tag
non-radiative transitions
Generator for Particles tag.
for the Radiative/CrossSection part
querysets and nested querysets:
loop varaibles:
helper function for line broadening, called from RadTrans
allowed names are: pressure, instrument, doppler, natural
Shifting type
Generator for the XSAMS radiative transitions.
Generator for Solids tag
Create the Source tag structure (a bibtex entry)
If the queryset has an XML method, use that and skip the hard-coded implementation.
Embed html
build the elements for accuracy that belong to DataType.
Build ArgumentType
This constructs the Atomic Component structure.
Atom - the current Atom queryset
Create the Broadening tag
return the Case and the QNs
Creates the dataseries type
This is for treating the case where a keyword corresponds to a DataType in the schema which can have units, comment, sources etc. The dictionary-suffixes are appended and the values retrieved. If the sources is iterable, it is looped over.
build the elements for evaluation that belong to DataType.
Similar to makeDataType above, but allows the result of G() to be iterable and adds the name-attribute. If the corresponding refs etc are not iterable, they are replicated for each tag.
Create the Partionfunction tag element.
Build the Primary-type base tags. Note that this method does NOT close the tag, </tagname> must be added manually by the calling function.
extraAttr is a dictionary of attributes-value pairs to add to the tag.
Similar to makeDataType above, but allows the result of G() to be iterable and adds the name-attribute. If the corresponding refs etc are not iterable, they are replicated for each tag.
Creates the Atom shell type.
Create a SourceRef tag entry
Construct the Term xsams structure.
This version is more generic than XsamsTerm function and don’t enforce LS/JK/LK to be exclusive to one another (as dictated by current version of xsams schema)
Return an iterable, no matter what
Creates a nested list of lists. All arguments should be valid dictionary keywords and will be fed to G. They are expected to return iterables of equal lengths. The generator yields a list of current element of each argument-list in order, so one can do e.g.
- for name, unit in makeloop(‘TabulatedData’, G, ‘Name’, ‘Unit’):
- ...
XSAMS whats this as strings “odd” or “even”, not numerical
Sources to VO
States to VO
Converting Transition to html
Transition to VO
VO base definition