-
Notifications
You must be signed in to change notification settings - Fork 13
/
FileFormats.py
executable file
·63 lines (57 loc) · 1.94 KB
/
FileFormats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""Provides extra classes that can load data from various instruments into _SC_.DataFile type objects.
You do not need to use these classes directly, they are made available to :py:class:`Stoner.Core.Data` which
will load each of them in turn when asked to load an unknown data file.
Each class has a priority attribute that is used to determine the order in which
they are tried by :py:class:`Stoner.Core.Data` and friends where trying to load data.
High priority is run last (so is a bit of a misnomer!).
Each class should implement a load() method and optionally a save() method. Classes should make every effort to
positively identify that the file is one that they understand and throw a
:py:exception:Stoner.Core._SC_.StonerLoadError` if not.
"""
from warnings import warn
__all__ = [
"BNLFile",
"BigBlueFile",
"BirgeIVFile",
"CSVFile",
"EasyPlotFile",
"ESRF_DataFile",
"ESRF_ImageFile",
"FmokeFile",
"GenXFile",
"HyperSpyFile",
"KermitPNGFile",
"LSTemperatureFile",
"MDAASCIIFile",
"MokeFile",
"OVFFile",
"OpenGDAFile",
"PinkLibFile",
"QDFile",
"RasorFile",
"RigakuFile",
"SNSFile",
"SPCFile",
"TDMSFile",
"VSMFile",
"XRDFile",
]
# pylint: disable=unused-argument
from Stoner.formats.instruments import LSTemperatureFile, QDFile, RigakuFile, SPCFile, VSMFile, XRDFile
from Stoner.formats.facilities import (
BNLFile,
MDAASCIIFile,
OpenGDAFile,
RasorFile,
SNSFile,
ESRF_DataFile,
ESRF_ImageFile,
)
from Stoner.formats.generic import CSVFile, KermitPNGFile, TDMSFile, HyperSpyFile
from Stoner.formats.rigs import BigBlueFile, BirgeIVFile, MokeFile, FmokeFile, EasyPlotFile, PinkLibFile
from Stoner.formats.simulations import GenXFile, OVFFile
warn(
"*" * 80
+ "\nStoner.FileFormats is a deprecated module - use Stoner.formats and it's sub-modules now!\n"
+ "*" * 80
)