Skip to content

Commit

Permalink
Apply suggestions from code review to m_spectrum_ph3.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Paniagua <[email protected]>
  • Loading branch information
kmilo9999 and cpaniaguam authored Mar 13, 2024
1 parent 180333c commit cfb8cda
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/icesat2waves/local_modules/m_spectrum_ph3.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,18 @@ def cal_MEM(self, theta=None, flim=(0.01, 0.5)):
"""
# theta=np.arange(1,361) if theta is None else theta

MEM = dict()
MEM = {}
MEM["D"], MEM["S"], MEM["E"], MEM["freq"], MEM["theta"] = MEM_cal(
self.moments_est, self.f, theta=theta, flim=flim
)
MEM["fmin"] = flim[0]
MEM["fmax"] = flim[1]
MEM["unit_power"] = self.moments_unit + "/Hz"
MEM["unit_dir"] = self.moments_unit + "/deg/Hz"
MEM.update(
{
"fmin": flim[0],
"fmax": flim[1],
"unit_power": self.moments_unit + "/Hz",
"unit_dir": self.moments_unit + "/deg/Hz",
}
)

self.MEM = MEM

Expand Down

0 comments on commit cfb8cda

Please sign in to comment.