-
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.
use_case_41: Desired functionality for the good/bad MulensData arrays.
- Loading branch information
1 parent
90c18c5
commit dd54d4e
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
Use case for changing the bad data array. | ||
""" | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
import MulensModel as mm | ||
|
||
|
||
raise raise NotImplementedError( | ||
"We don't know how to enable this functionality.") | ||
|
||
data = mm.MulensData(file_name="my_data.dat") | ||
data.plot(show_bad=True) | ||
|
||
data.bad[12] = True | ||
data.plot(show_bad=True) | ||
|
||
data.bad[np.where(data.mag < 13.)] = True | ||
data.plot(show_bad=True) | ||
|
||
data.good[data.mag < 12.] = True | ||
data.plot(show_bad=True) | ||
|
||
plt.show() |
dd54d4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This:
doesn't change anything. Do you meant
... = False
?@jenniferyee