Bases: object
Contains information to reconstruct a page of the fitpanel.
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Initialize the current state
Parameters: |
|
---|
helper for pickle
helper for pickle
output string for printing
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Check string ‘%’ for html format
Helper function to write state to xml
Helper method to print a state
Helper method to create xml file for saving state
Create a new copy of the current object
Load fitting state from a file
Parameters: |
|
---|
Invoke report dialog panel
: param figs: list of pylab figures [list]
Build image state that wx.html understand by plotting, putting it into wx.FileSystem image object
Get the values (strings) from __str__ for report
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: |
|
---|
Bases: sans.dataloader.readers.cansas_reader.Reader
Class to load a .fitv fitting file
Create an XML document to contain the content of a Data2D
Parameters: | datainfo – Data2D object |
---|
Parse a SASentry
Parameters: | node – SASentry node |
---|---|
Returns: | Data1D/Data2D object |
Read a fit result from an XML node
Parameters: | entry – XML node to read from |
---|---|
Returns: | PageState object |
Load data and P(r) information from a CanSAS XML file.
Parameters: | path – file path |
---|---|
Returns: | Data1D object if a single SASentry was found, or a list of Data1D objects if multiple entries were found, or None of nothing was found |
Raises: |
|
Get the content of a xpath location and store the result. The value is treated as a string.
The xpath location might or might not exist. If it does not exist, nothing is done
Parameters: |
|
---|---|
Returns: | return a list of errors |
Get the content of a xpath location and store the result. Check that the units are compatible with the destination. The value is expected to be a float.
The xpath location might or might not exist. If it does not exist, nothing is done
Parameters: |
|
---|---|
Raises ValueError: | |
raised when the units are not recognized |
Create an XML document to contain the content of a Data1D
Parameters: | datainfo – Data1D object |
---|
Load a new P(r) inversion state from file
Parameters: | path – file path |
---|
Write the content of a Data1D as a CanSAS XML file only for standalone
Parameters: |
|
---|
Write toXML, a helper for write() , could be used by guimanager._on_save()
: return: xml doc
Create a numpy list from value extrated from the node
Parameters: |
|
---|
: return: numpy array