Skip to content

Commit

Permalink
Merge pull request #200 from nickssl/matplotlib-backend
Browse files Browse the repository at this point in the history
Fixed imports, logging
  • Loading branch information
nickssl committed Dec 27, 2023
2 parents 0374b22 + b8c21a3 commit f3611db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pytplot/tplot_math/pwrspc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def pwrspc(time, quantity, noline=False, nohanning=False, bin=3, notperhz=False)

xs2 = np.abs(np.fft.fft(x)) ** 2
dbign = float(nt)
logging.info('bign=', dbign)
logging.info('bign=' + str(dbign))

k = np.arange(0, dbign // 2 + 1)
tres = float(np.median(np.diff(t)))
Expand Down Expand Up @@ -109,6 +109,6 @@ def pwrspc(time, quantity, noline=False, nohanning=False, bin=3, notperhz=False)
if not notperhz:
power /= dfreq

logging.info('dfreq=', dfreq)
logging.info('dfreq=' + str(dfreq))

return freq, power
3 changes: 2 additions & 1 deletion pytplot/tplot_math/tpwrspc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import numpy as np
from pytplot import tnames, get_data, pwrspc, store_data, options, time_string
from pytplot import tnames, get_data, store_data, options
from .pwrspc import pwrspc


def tpwrspc(varname, newname=None, overwrite=False, noline=False, nohanning=False, bin=3, notperhz=False, trange=None, axis=0):
Expand Down

0 comments on commit f3611db

Please sign in to comment.