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()

Load a P(r) inversion state from a file

Parameters:
  • file – .prv file
  • node – node of a XML document to read from
toXML()

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

Bases: sans.dataloader.readers.cansas_reader.Reader

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

ext = ['.prv', '.PRV', '.svs', '.SVS']
read()

Load a new P(r) inversion state from file

Parameters:path – file path
Returns:None
type = ['P(r) files (*.prv)|*.prv', 'SANSView files (*.svs)|*.svs']
type_name = 'P(r)'
version = '1.0'
write()

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
write_toXML()

Write toXML, a helper for write()

: return: xml doc

Table Of Contents

Previous topic

inversion_panel

Next topic

pr

This Page