-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from adrn/make-getter
Add implementation of make_getter (removed from astropy)
- Loading branch information
Showing
13 changed files
with
196 additions
and
163 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
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
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,37 +1,31 @@ | ||
|
||
get_ipython().magic('config InlineBackend.figure_format = "retina"') # noqa | ||
|
||
import matplotlib.pyplot as plt | ||
from cmastro import cmaps # noqa | ||
|
||
plt.style.use("default") | ||
|
||
# NOTE: if you update these, also update docs/conf.py | ||
plot_rcparams = { | ||
'image.cmap': 'cma:hesperia', | ||
|
||
"image.cmap": "magma", | ||
# Fonts: | ||
'font.size': 16, | ||
'figure.titlesize': 'x-large', | ||
'axes.titlesize': 'large', | ||
'axes.labelsize': 'large', | ||
'xtick.labelsize': 'medium', | ||
'ytick.labelsize': 'medium', | ||
|
||
"font.size": 16, | ||
"figure.titlesize": "x-large", | ||
"axes.titlesize": "large", | ||
"axes.labelsize": "large", | ||
"xtick.labelsize": "medium", | ||
"ytick.labelsize": "medium", | ||
# Axes: | ||
'axes.labelcolor': 'k', | ||
'axes.axisbelow': True, | ||
|
||
"axes.labelcolor": "k", | ||
"axes.axisbelow": True, | ||
# Ticks | ||
'xtick.color': '#333333', | ||
'xtick.direction': 'in', | ||
'ytick.color': '#333333', | ||
'ytick.direction': 'in', | ||
'xtick.top': True, | ||
'ytick.right': True, | ||
|
||
'figure.dpi': 300, | ||
'savefig.dpi': 300, | ||
"xtick.color": "#333333", | ||
"xtick.direction": "in", | ||
"ytick.color": "#333333", | ||
"ytick.direction": "in", | ||
"xtick.top": True, | ||
"ytick.right": True, | ||
"figure.dpi": 300, | ||
"savefig.dpi": 300, | ||
} | ||
|
||
plt.rcParams.update(plot_rcparams) |
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 |
---|---|---|
|
@@ -4,20 +4,6 @@ | |
|
||
import sys | ||
|
||
__author__ = 'adrn <[email protected]>' | ||
__author__ = "adrn <[email protected]>" | ||
|
||
from ._astropy_init import * | ||
|
||
# Enforce Python version check during package import. | ||
# This is the same check as the one at the top of setup.py | ||
__minimum_python_version__ = "3.7" | ||
|
||
|
||
class UnsupportedPythonError(Exception): | ||
pass | ||
|
||
|
||
if sys.version_info < tuple((int(val) | ||
for val in __minimum_python_version__.split('.'))): | ||
raise UnsupportedPythonError( | ||
f"packagename does not support Python < {__minimum_python_version__}") | ||
from ._version import version as __version__ |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.