Skip to content

Commit 17fabf2

Browse files
authored
Merge pull request #172 from karllark/bug_fix_plot
fixing a plotting bug
2 parents 1202e93 + ab58ad9 commit 17fabf2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

measure_extinction/model.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MEModel(object):
7171
B3 = MEParameter(value=3.6, bounds=(-1.0, 8.0), prior=(3.6, 0.6))
7272
C4 = MEParameter(value=0.4, bounds=(-0.5, 1.5), prior=(0.4, 0.2))
7373
xo = MEParameter(value=4.59, bounds=(4.5, 4.9), prior=(4.59, 0.02))
74-
gamma = MEParameter(value=0.89, bounds=(0.4, 1.7), prior=(0.89, 0.08))
74+
gamma = MEParameter(value=0.89, bounds=(0.6, 1.7), prior=(0.89, 0.08))
7575

7676
# gas
7777
vel_MW = MEParameter(value=0.0, bounds=(-300.0, 300.0)) # km/s
@@ -1076,7 +1076,10 @@ def plot(
10761076
ptype = "-"
10771077
mline = "-"
10781078
rmarker = "none"
1079-
rcolor = grating_info[cspec]
1079+
if cspec not in grating_info.keys():
1080+
rcolor = "black"
1081+
else:
1082+
rcolor = grating_info[cspec]
10801083

10811084
if cspec == "BAND":
10821085
cwaves = obsdata.data[cspec].waves

0 commit comments

Comments
 (0)