Skip to content

Commit

Permalink
Moved core/utils.py to utils/misc.py as it was screwing up some names…
Browse files Browse the repository at this point in the history
…pace stuff. Moved cubic interpolation module to utils.
  • Loading branch information
kiyo-masui committed Jan 26, 2012
1 parent 89b2650 commit b420591
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 863 deletions.
6 changes: 3 additions & 3 deletions core/algebra.py
Expand Up @@ -59,14 +59,14 @@
import sys import sys
import warnings import warnings
from functools import wraps from functools import wraps
import operator


import scipy as sp import scipy as sp
import numpy as np import numpy as np
import numpy.lib.format as npfor import numpy.lib.format as npfor
from numpy.lib.utils import safe_eval from numpy.lib.utils import safe_eval
import operator


import cubic_conv_interpolation as cci import utils.cubic_conv_interpolation as cci


# TODO: # TODO:
# when submitted as batch on Sunnyvale, the PYTHONPATH seems to get clobbered # when submitted as batch on Sunnyvale, the PYTHONPATH seems to get clobbered
Expand Down Expand Up @@ -850,7 +850,7 @@ def slice_interpolate(self, axes, coord, kind='linear') :
# Get the nodes needed and their weights. # Get the nodes needed and their weights.
out = cci.interpolate(axes, self, pnt, x0, step_sizes) out = cci.interpolate(axes, self, pnt, x0, step_sizes)
else: else:
# Get the contributing points and their wiehgts. # Get the contributing points and their weights.
points, weights = self.slice_interpolate_weights(axes, coord, kind) points, weights = self.slice_interpolate_weights(axes, coord, kind)
# Sum up the points # Sum up the points
q = points.shape[0] q = points.shape[0]
Expand Down
2 changes: 1 addition & 1 deletion core/base_data.py
Expand Up @@ -4,7 +4,7 @@
import numpy.ma as ma import numpy.ma as ma


import kiyopy.custom_exceptions as ce import kiyopy.custom_exceptions as ce
import utils import utils.misc as utils
from hist import History, merge_histories from hist import History, merge_histories


class BaseData(object) : class BaseData(object) :
Expand Down

0 comments on commit b420591

Please sign in to comment.