inversion_state

sans.perspectives.pr.inversion_state

class sans.perspectives.pr.inversion_state.InversionState

Bases: object

Class to hold the state information of the InversionControl panel.

fromXML(file=None, node=None)

Load a P(r) inversion state from a file

Parameters:
  • file – .prv file
  • node – node of a XML document to read from
toXML(file='pr_state.prv', doc=None, entry_node=None)

Writes the state of the InversionControl panel to file, as XML.

Compatible with standalone writing, or appending to an already existing XML document. In that case, the XML document is required. An optional entry node in the XML document may also be given.

Parameters:
  • file – file to write to
  • doc – XML document object [optional]
  • entry_node – XML node within the XML document at which we will append the data [optional]
class sans.perspectives.pr.inversion_state.Reader(call_back, cansas=True)

Bases: DataLoader.readers.cansas_reader.Reader

Class to load a .prv P(r) inversion file

read(path)

Load a new P(r) inversion state from file

Parameters:
  • path – file path
Returns:

None

write(filename, datainfo=None, prstate=None)

Write the content of a Data1D as a CanSAS XML file

Parameters:
  • filename – name of the file to write
  • datainfo – Data1D object
  • prstate – InversionState object

Table Of Contents

Previous topic

inversion_panel

Next topic

pr_thread

This Page