-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Register "Detector" (needed for GUI) * limit tests to <5s
- Loading branch information
Showing
2 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
__contact__ = "[email protected]" | ||
__license__ = "GPLv3+" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
__date__ = "2014-09-18" | ||
__date__ = "23/10/2014" | ||
__status__ = "stable" | ||
__doc__ = """ | ||
Module containing the description of all detectors with a factory to instanciate them | ||
|
@@ -68,7 +68,8 @@ class DetectorMeta(type): | |
# to modify attributes of the class *after* they have been | ||
# created | ||
def __init__(cls, name, bases, dct): | ||
if hasattr(cls, 'MAX_SHAPE'): | ||
# "Detector" is a bit peculiar: while abstract it may be needed by the GUI, so adding it to the repository | ||
if hasattr(cls, 'MAX_SHAPE') or name == "Detector": | ||
cls.registry[name.lower()] = cls | ||
if hasattr(cls, "aliases"): | ||
for alias in cls.aliases: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters