Skip to content

Commit 6787c8a

Browse files
committed
Checking in.
1 parent 8e68ce5 commit 6787c8a

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

docs/sbpy/calib.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ The names of the built-in sources are stored as an internal array. They can be
4141
>>> print(sun)
4242
<Sun: E490-00a (2014) low resolution reference solar spectrum (Table 4)>
4343

44+
45+
.. _sbpy-spectroscopic-calibration:
46+
4447
Controlling the default spectra
4548
-------------------------------
4649

@@ -92,6 +95,8 @@ An example showing how to change the default Vega spectrum:
9295
... # vega.txt in effect
9396

9497

98+
.. _sbpy-photometric-calibration:
99+
95100
Photometric calibration (without spectra or `synphot`)
96101
------------------------------------------------------
97102

sbpy/photometry/hb/data/filter.ecsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# - {name: cwave, unit: AA, datatype: float64, description: center wavelength}
77
# - {name: width, unit: AA, datatype: string, subtype: 'float64[4]', description: full-width power points at 80%, 50%, 10%, and 1% of the peak transmission}
88
# - {name: Flam0, unit: erg / (cm2 s AA), datatype: float64, description: flux of 0 magnitude star}
9-
# - {name: XXmBCsun, unit: mag, datatype: float64, description: "solar color, XX-BC"}
9+
# - {name: XXmBCsun, datatype: float64, description: "solar color, XX-BC"}
1010
# - {name: gamma_XX_XX, unit: 1 / AA, datatype: float64, description: "fraction of gas emission band captured by filter, normalized by the filter's equivalent width and transmission properties"}
1111
# - {name: gamma_prime_XX_XX, datatype: float64, description: fraction of gas emission band captured by filter}
1212
# meta: !!omap

sbpy/photometry/hb/filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def fluxd0(self) -> u.Quantity[u.Unit("erg / (cm2 s AA)")]:
106106
return filter_data[self.value]["Flam0"]
107107

108108
@property
109-
def solar_color(self) -> u.mag:
109+
def solar_color(self) -> u.Magnitude:
110110
"""Solar color: [filter]-BC."""
111-
return filter_data[self.value]["XXmBCsun"]
111+
return u.Magnitude(filter_data[self.value]["XXmBCsun"])
112112

113113
def gamma(self, molecule: str) -> u.Quantity[1 / u.AA]:
114114
"""Fraction of molecule present in this filter, normalized by filter equivalent width.

sbpy/photometry/hb/tests/test_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_fluxd0(self):
3535
assert HBFilterSet.H2Oplus.fluxd0 == 1.380e-9 * u.erg / u.cm**2 / u.s / u.AA
3636

3737
def test_solar_color(self):
38-
assert HBFilterSet.C3.solar_color == 0.497 * u.mag
38+
assert HBFilterSet.C3.solar_color == u.Magnitude(0.497)
3939

4040
def test_gamma(self):
4141
assert HBFilterSet.C2.gamma("C2") == 5.433e-3 / u.AA

sbpy/spectroscopy/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import numpy as np
99
import astropy.units as u
1010

11-
1211
__all__ = ["Spectrum", "SpectralModel", "SpectralGradient"]
1312

1413
__doctest_requires__ = {

0 commit comments

Comments
 (0)