Line Base Class

This module defines the class for LINE entries in BDP’s

class admit.util.Line.Line(**keyval)

Methods

getlowerenergy()
getupperenergy()
isequal(line)
setkey([name, value]) set keys, two styles are possible:
setlowerenergy(value)
setupperenergy(value)
write(root, name) Method to write an xml entry for a Line
getlowerenergy()
getupperenergy()
isequal(line)
setkey(name='', value='')

set keys, two styles are possible:

  1. name = {key:val} e.g. setkey({“a”:1})
  2. name = “key”, value = val e.g. setkey(“a”,1)

This method checks the type of the keyword value, as it must remain the same. Also new keywords cannot be added.

Parameters:

name : dictionary or string

Dictionary of keyword value pais to set or a string with the name of a single key

value : any

The value to change the keyword to

Returns:

None

setlowerenergy(value)
setupperenergy(value)
write(root, name)

Method to write an xml entry for a Line

This Page