edges_io.io.S11Dir.typestr#

classmethod S11Dir.typestr(name: str)#

Generate a string uniquely defining the ‘kind of thing’ the object is.

The point of this method is to be able to compare two different file/folder names to check whether they describe the same kind of thing. For example, two Spectrum files from different observations which are both “Ambient” should return the same string, even though their dates etc. might be different. However, two Spectrum files of different Loads will be different.

The reason this has to exist (and as a classmethod) is because merely comparing the type of the thing is not enough, since the class itself has no knowledge of for example the kind of load. But comparing instances is not great either, since instances are expected to have a full complement of files to be “valid”, but one of the main purposes of comparing files is to construct such a full observation.