erlab.io.plugins.tps39a

Data loader for TPS Beamline 39A at NSRRC.

Classes

TPS39ALoader()

Load Scienta analyzer data from TPS Beamline 39A at NSRRC.

class erlab.io.plugins.tps39a.TPS39ALoader[source]

Bases: DA30Loader

Load Scienta analyzer data from TPS Beamline 39A at NSRRC.

name: str = 'tps39a'

Name of the loader. Using a unique and descriptive name is recommended. For easy access, it is recommended to use a name that passes str.isidentifier().

Notes

  • Changing the name of a loader is not recommended as it may break existing code. Pick a simple, descriptive name that is unlikely to change.

  • Loaders with the name prefixed with an underscore are not registered.

description: str = 'NSRRC TPS Beamline 39A'

A short description of the loader shown to users.

Added in version 3.3.0.

coordinate_attrs: tuple[str, ...] = ('beta', 'hv')

Attribute names (after renaming) that should be treated as coordinates.

Put any attributes that should be propagated when concatenating data here.

Notes

  • If a listed attribute is not found, it is silently skipped.

  • The attributes given here, both before and after renaming, are removed from the attributes to avoid conflicting values.

  • If an existing coordinate with the same name is already present, the existing coordinate takes precedence and the attribute is silently dropped.

See also

process_keys

additional_attrs: ClassVar[dict] = {'configuration': 4}

Additional attributes to be added to the data after loading.

If a callable is provided, it will be called with the data as the only argument.

Notes

  • The attributes are added after renaming with process_keys, so keys will appear in the data as provided.

  • If an attribute with the same name is already present in the data, it is skipped unless the key is listed in overridden_attrs.

property file_dialog_methods