Skip to content

Commit

Permalink
Making it possible to use scripts when installation is not possible (…
Browse files Browse the repository at this point in the history
…although not the recommended way to use the code!!). Using the scripts directly would need to update your PYTHONPATH, the command line utilities are not available, and this only gives access to filterbank and waterfall.
  • Loading branch information
jeenriquez committed Jun 3, 2018
1 parent aab4f2c commit e2b6156
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 7 additions & 3 deletions blimpy/filterbank.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@
import scipy.stats
from matplotlib.ticker import NullFormatter

from .utils import db, lin, rebin, closest, unpack_2to8
import logging as logger

try:
from .utils import db, lin, rebin, closest, unpack_2to8
from .sigproc import *
except:
from utils import db, lin, rebin, closest, unpack_2to8
from sigproc import *

try:
import h5py
HAS_HDF5 = True
Expand All @@ -59,8 +65,6 @@
import pylab as plt


from .sigproc import *

###
# Config values
###
Expand Down
11 changes: 8 additions & 3 deletions blimpy/waterfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@
import sys
import time

from .filterbank import Filterbank
from . import file_wrapper as fw
from .sigproc import *
try:
from .filterbank import Filterbank
from . import file_wrapper as fw
from .sigproc import *
except:
from filterbank import Filterbank
import file_wrapper as fw
from sigproc import *

try:
import h5py
Expand Down

0 comments on commit e2b6156

Please sign in to comment.