ewoksfluo.xrffit.buffers.external.ExternalOutputBuffer#

class ewoksfluo.xrffit.buffers.external.ExternalOutputBuffer(output_handler, diagnostics=False, figuresofmerit=False)[source]#

Bases: object

This is an output buffer of an external output handler.

Parameters:
Context(**_)[source]#
Return type:

Iterator[None]

allocateMemory(name, shape=None, dtype=None, data=None, fill_value=nan, group=None, labels=None, dataAttrs=None, **kw)[source]#
Parameters:
  • name (str) – name of the dataset when group is specified, name of the group otherwise

  • group (Optional[str]) – name of the group

  • labels (Optional[List[str]]) – dataset names when group is specified, not used otherwise

  • shape (Optional[Tuple[int]]) – total group shape when group is specified, dataset shape otherwise

  • dtype (Union[dtype[Any], None, type[Any], _SupportsDType[dtype[Any]], str, tuple[Any, int], tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], list[Any], _DTypeDict, tuple[Any, Any]])

  • data (Optional[ndarray])

  • fill_value (Number)

  • dataAttrs (Optional[dict])

Return type:

Union[ndarray, List[ndarray]]

property already_existed: bool#
property diagnostics: bool#
hasAllocatedMemory()[source]#
Return type:

bool

labels(group)[source]#
Parameters:

group (str)

Return type:

List[str]

property output_root_uri: str | None#
saveContext(**_)[source]#
Return type:

Iterator[None]

property saveData: bool#
property saveDataDiagnostics: bool#
property saveFOM: bool#
property saveFit: bool#
property saveResiduals: bool#
property xrf_results_uri: str | None#