Commit 67e49c13 authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Updated import statements to use pyUSID.processing.comp_utils

parent 3c2eebe6
......@@ -13,7 +13,8 @@ import time as tm
from .guess_methods import GuessMethods
from .fit_methods import Fit_Methods
from pyUSID import USIDataset
from pyUSID.io.io_utils import get_available_memory, recommend_cpu_cores, format_time
from pyUSID.processing.comp_utils import get_available_memory, recommend_cpu_cores
from pyUSID.io.io_utils import format_time
from pyUSID.io.hdf_utils import check_for_old, find_results_groups, check_for_matching_attrs, get_attr
from .optimize import Optimize
......
......@@ -9,7 +9,8 @@ Created on Thu Nov 02 11:48:53 2017
from __future__ import division, print_function, absolute_import, unicode_literals
import numpy as np
from pyUSID.processing.process import Process, parallel_compute
from pyUSID.processing.process import Process
from pyUSID.processing.comp_utils import parallel_compute
from pyUSID.io.dtype_utils import stack_real_to_compound
from pyUSID.io.hdf_utils import write_main_dataset, create_results_group, create_empty_dataset, write_simple_attrs, \
print_tree, get_attributes
......
......@@ -17,7 +17,7 @@ from sklearn.neighbors import KNeighborsClassifier
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from pyUSID.io.io_utils import recommend_cpu_cores
from pyUSID.processing.comp_utils import recommend_cpu_cores
from pyUSID.io.dtype_utils import stack_real_to_compound
from ...io.virtual_data import VirtualDataset, VirtualGroup
from ...io.hdf_writer import HDFwriter
......
......@@ -11,7 +11,7 @@ import multiprocessing as mp
import time as tm
import matplotlib.pyplot as plt
from pyUSID.io.io_utils import recommend_cpu_cores
from pyUSID.processing.comp_utils import recommend_cpu_cores
from ...io.virtual_data import VirtualDataset, VirtualGroup
from ...io.hdf_writer import HDFwriter
from pyUSID.viz.plot_utils import cmap_jet_white_center
......
......@@ -21,7 +21,7 @@ from pyUSID.io.hdf_utils import write_ind_val_dsets, write_main_dataset, write_r
create_indexed_group, write_simple_attrs, write_book_keeping_attrs, copy_attributes,\
write_reduced_spec_dsets
from pyUSID.io.usi_data import USIDataset
from pyUSID.io.io_utils import get_available_memory
from pyUSID.processing.comp_utils import get_available_memory
class BEodfTranslator(Translator):
"""
......
......@@ -18,7 +18,7 @@ import xlrd as xlreader
from pyUSID.io.hdf_utils import get_auxiliary_datasets, find_dataset, get_h5_obj_refs, link_h5_objects_as_attrs, \
get_attr, create_indexed_group, write_simple_attrs, write_main_dataset, Dimension
from pyUSID.io.write_utils import create_spec_inds_from_vals
from pyUSID.io.io_utils import get_available_memory, recommend_cpu_cores
from pyUSID.processing.comp_utils import get_available_memory, recommend_cpu_cores
from ....analysis.optimize import Optimize
from ....processing.histogram import build_histogram
from ....viz.be_viz_utils import plot_1d_spectrum, plot_2d_spectrogram, plot_histograms
......
......@@ -12,7 +12,8 @@ import sklearn.cluster as cls
from scipy.cluster.hierarchy import linkage
from scipy.spatial.distance import pdist
from .proc_utils import get_component_slice
from pyUSID.processing.process import Process, parallel_compute
from pyUSID.processing.process import Process
from pyUSID.processing.comp_utils import parallel_compute
from pyUSID.io.hdf_utils import reshape_to_n_dims, create_results_group, write_main_dataset, get_attr, \
write_simple_attrs, link_h5_obj_as_alias, write_ind_val_dsets
from pyUSID import USIDataset
......
......@@ -17,7 +17,7 @@ from sklearn.utils import gen_batches
from pyUSID import USIDataset
from pyUSID.io.hdf_utils import get_h5_obj_refs, copy_attributes, link_h5_objects_as_attrs, find_results_groups, \
link_as_main, check_for_old
from pyUSID.io.io_utils import get_available_memory
from pyUSID.processing.comp_utils import get_available_memory
from pyUSID.io.write_utils import make_indices_matrix, get_aux_dset_slicing, INDICES_DTYPE, VALUES_DTYPE, calc_chunks
from ..io.hdf_writer import HDFwriter
from ..io.virtual_data import VirtualGroup, VirtualDataset
......
......@@ -10,7 +10,8 @@ from __future__ import division, print_function, absolute_import, unicode_litera
import h5py
import numpy as np
from collections import Iterable
from pyUSID.processing.process import Process, parallel_compute
from pyUSID.processing.process import Process
from pyUSID.processing.comp_utils import parallel_compute
from pyUSID.io.hdf_utils import create_results_group, write_main_dataset, write_simple_attrs, create_empty_dataset, \
write_ind_val_dsets
from pyUSID.io.write_utils import Dimension
......
......@@ -17,7 +17,8 @@ from .proc_utils import get_component_slice
from pyUSID.io.hdf_utils import find_results_groups, get_indices_for_region_ref, \
create_region_reference, copy_attributes, reshape_to_n_dims, get_attr, write_main_dataset, \
create_results_group, write_simple_attrs, create_indexed_group
from pyUSID.io.io_utils import get_available_memory, format_time
from pyUSID.processing.comp_utils import get_available_memory
from pyUSID.io.io_utils import format_time
from pyUSID.io.dtype_utils import check_dtype, stack_real_to_target_dtype
from pyUSID.io.write_utils import Dimension, calc_chunks
from pyUSID import USIDataset
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment