Commit 10c69e70 authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Importing print and division from future for all files

parent cfac8e18
......@@ -6,7 +6,7 @@ Created on Thu Aug 25 11:48:53 2016
"""
from __future__ import division
from __future__ import print_function, division
from warnings import warn
......
"""
Created on 7/17/16 10:08 AM
@author: Suhas Somnath, Numan Laanait
@author: Suhas Somnath, Numan Laanait, Chris R. Smith
"""
from __future__ import division
from __future__ import print_function, division
from warnings import warn
import numpy as np
from .model import Model
......
......@@ -3,6 +3,7 @@ Created on 12/15/16 3:44 PM
@author: Numan Laanait -- nlaanait@gmail.com
"""
from __future__ import print_function, division
from warnings import warn
import numpy as np
from .utils.be_loop import loop_fit_function
......
......@@ -3,6 +3,7 @@ Created on 10/5/16 3:44 PM
@author: Numan Laanait -- nlaanait@gmail.com
"""
from __future__ import print_function, division
from warnings import warn
import numpy as np
......
......@@ -3,6 +3,7 @@ Created on 7/17/16 10:08 AM
@author: Numan Laanait, Suhas Somnath
"""
from __future__ import print_function, division
from warnings import warn
import numpy as np
......
......@@ -3,6 +3,7 @@ Created on 12/15/16 10:08 AM
@author: Numan Laanait
"""
from __future__ import print_function, division
from warnings import warn
import numpy as np
import sys
......
......@@ -5,6 +5,7 @@ Created on Mon Jan 23 11:13:22 2017
@author: Suhas Somnath, Stephen Jesse
"""
from __future__ import print_function, division
import numpy as np
from scipy.optimize import least_squares
import itertools as itt
......
# -*- coding: utf-8 -*-
from __future__ import print_function, division
import os
import numpy as np
from scipy.optimize import least_squares
......
......@@ -7,7 +7,7 @@ Created on Wed Jun 29 11:13:22 2016
Various helper functions for aiding loop fitting and projection
"""
from __future__ import division
from __future__ import print_function, division
import matplotlib.pyplot as plt
import numpy as np
......
......@@ -5,6 +5,7 @@ Created on Mon Sep 28 11:35:57 2015
@author: Anton Ievlev
"""
from __future__ import print_function, division
import numpy as np
from numpy import exp, abs, sqrt, sum, real, imag, arctan2, append
......
# -*- coding: utf-8 -*-
from __future__ import print_function
"""
Created on Wed Aug 31 17:03:29 2016
@author: Suhas Somnath
"""
from __future__ import print_function, division
import numpy as np
# TODO: Test and debug node and clusterTree classes for agglomerative clustering etc
class Node(object):
"""
Basic unit of a tree - a node. Keeps track of its value, labels, parent, children, level in the tree etc.
......
......@@ -11,4 +11,4 @@ from .translators import *
from . import dm4reader
__all__ = ['ioHDF5', 'MicroDataset', 'MicroDataGroup', 'be_hdf_utils', 'hdf_utils', 'io_utils', 'microdata']
__all__+= translators.__all__
\ No newline at end of file
__all__ += translators.__all__
\ No newline at end of file
......@@ -4,6 +4,8 @@ Created on Tue Dec 15 11:10:37 2015
@author: Suhas Somnath
"""
from __future__ import print_function, division
import numpy as np
from .hdf_utils import getAuxData
......
......@@ -10,6 +10,7 @@
# There is a seperate DatatType and PixelDepth stored for images different
# from the tag file datatype. I think these are used more than the tag
# datratypes in describing the data.
from __future__ import print_function, division
from parse_dm3 import *
import numpy as np
......@@ -109,7 +110,7 @@ def save_image(image, file):
"""
if isinstance(file, str):
with open(file, "wb") as f:
return save_image(n, f)
return save_image(image, f)
# we need to create a basic DM tree suitable for an imge
# we'll try the minimum: just an image list
# doesn't work. Do we need a ImageSourceList too?
......
......@@ -4,6 +4,7 @@ Created on Aug 7, 2015
@author: James Anderson
'''
from __future__ import print_function, division
import collections
import struct
import array
......
......@@ -4,7 +4,7 @@ Created on Tue Nov 3 21:14:25 2015
@author: Suhas Somnath, Chris Smith, Numan Laanait
"""
from __future__ import print_function
from __future__ import print_function, division
import h5py
from warnings import warn
import numpy as np
......
......@@ -5,6 +5,7 @@ Main Class in charge of writing/reading to/from hdf5 file.
@author: Numan Laanait, Suhas Somnath, Chris Smith
"""
from __future__ import print_function, division
import os
import subprocess
import sys
......
......@@ -3,6 +3,8 @@ Created on Nov 8, 2016
@author: Chris Smith -- csmith55@utk.edu
"""
from __future__ import print_function, division
import os
import numpy as np
import array
......
......@@ -4,6 +4,7 @@ Created on Tue Nov 3 21:14:25 2015
@author: Suhas Somnath, Chris Smith
"""
from __future__ import print_function, division
from multiprocessing import cpu_count
from time import strftime
from psutil import virtual_memory as vm
......
......@@ -5,6 +5,7 @@ Created on Wed Dec 16 10:42:03 2015
@author: Suhas Somnath, Numan Laanait
"""
from __future__ import print_function, division
import socket
from warnings import warn
......
Supports Markdown
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