Commit c9f43e93 authored by Daniel Toyra's avatar Daniel Toyra

Fixed vprint compatibillity with python 2

parent 15471e9d
from __future__ import print_function
import pykat
import pykat.exceptions as pkex
from pykat import isContainer
......@@ -17,6 +19,7 @@ from scipy.misc import comb
import matplotlib.pyplot as plt
class SensingMatrix(DataFrame):
@property
def _constructor(self):
......@@ -105,9 +108,7 @@ def round_to_n(x, n):
def vprint(verbose, printstr, end='\n'):
if verbose:
# needs to be fixed
#print(printstr, end=end)
print(printstr)
print(printstr, end=end)
def BS_optical_path(thickness, n=1.44963098985906, angle=45.0):
"""
......
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