-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demonstration of using the proposed astropy custom config stuff
- Loading branch information
Showing
4 changed files
with
33 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import astropy.config as astropyconfig | ||
|
||
|
||
class ConfigNamespace(astropyconfig.ConfigNamespace): | ||
rootname = 'dkist' | ||
|
||
|
||
class ConfigItem(astropyconfig.ConfigItem): | ||
rootname = 'dkist' |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[io] | ||
## Name of Preferred fits module | ||
# preferred_fits_library = 'astropy' |
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 |
---|---|---|
@@ -1,3 +1,20 @@ | ||
from .fits import BaseFITSLoader, AstropyFITSLoader | ||
from .reference_collections import (BaseFITSArrayContainer, DaskFITSArrayContainer, | ||
NumpyFITSArrayContainer) | ||
__all__ = ['BaseFITSLoader', 'AstropyFITSLoader', 'BaseFITSArrayContainer', | ||
'NumpyFITSArrayContainer', 'DaskFITSArrayContainer', 'conf'] | ||
|
||
|
||
import dkist.config as _config | ||
|
||
|
||
class Conf(_config.ConfigNamespace): | ||
""" | ||
Configuration Parameters for the IO Package. | ||
""" | ||
|
||
preferred_fits_library = _config.ConfigItem('astropy', | ||
"Name of the preferred FITS module.") | ||
|
||
|
||
conf = Conf() |