Skip to content

Commit

Permalink
flake8 corrections in use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Nov 1, 2022
1 parent 553db75 commit b8a88f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/use_cases/use_case_05_satellite_parallax.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
This is Spitzer use case.
"""
import numpy as np
import os

import MulensModel as mm
Expand Down
1 change: 0 additions & 1 deletion examples/use_cases/use_case_05b_satellite_parallax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Figure 3 from Zhu et al. 2017 ApJL 849 L31. = MOA-2016-BLG-290
"""
import numpy as np
import matplotlib.pyplot as plt

import MulensModel as mm
Expand Down
1 change: 0 additions & 1 deletion examples/use_cases/use_case_10_get_chi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Calculate the chi2 between a model and some data.
"""
import matplotlib.pyplot as plt
from astropy import units as u
import os
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions examples/use_cases/use_case_11_bad_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import matplotlib.pyplot as plt
import numpy as np

import MulensModel as mm

Expand Down
2 changes: 0 additions & 2 deletions examples/use_cases/use_case_24_chi2_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
Similar to example_02_fitting.py except using the 'Newton-CG" method to
minimize the function (and now has a "Minimizer" class).
"""
import sys
import os
import numpy as np
import scipy.optimize as op
import matplotlib.pyplot as plt

Expand Down
7 changes: 5 additions & 2 deletions examples/use_cases/use_case_40_get_lc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@
# in FitData.get_residuals() to be consistent; ohh... we should also deprecate
# "scaled" in that case).

# Event.get_lc(dataset=1, phot_fmt="scaled") --> returns model magnitudes for dataset 1 scaled to ref_data.
# Event.get_lc(dataset=data1, phot_fmt="mag") --> returns model magnitudes for dataset 1 scaled to that dataset's fs, fb.
# Event.get_lc(dataset=1, phot_fmt="scaled") --> returns model magnitudes for
# dataset 1 scaled to ref_data.
# Event.get_lc(dataset=data1, phot_fmt="mag") --> returns model magnitudes for
# dataset 1 scaled to that
# dataset's fs, fb.
# The above also take into account bandpass and satellite_skycoord.

# Make plot:
Expand Down

0 comments on commit b8a88f6

Please sign in to comment.