diff --git a/pyphotonfile/photonfile.py b/pyphotonfile/photonfile.py index 83c62a8..71344be 100644 --- a/pyphotonfile/photonfile.py +++ b/pyphotonfile/photonfile.py @@ -105,8 +105,8 @@ def __eq__(self, other): comparisons.append(a == b) return all(comparisons) - # def __repr__(self): - # return 'Layer(%r, %r, %r)' % (self.layer_thickness, self.exposure_time, self.off_time) + def __repr__(self): + return 'Layer({})'.format(self.sublayers) class SubLayer: """ @@ -132,7 +132,7 @@ def __eq__(self, other): return all(comparisons) def __repr__(self): - return 'SubLayer(%r, %r, %r)' % (self.layer_thickness, self.exposure_time, self.off_time) + return 'SubLayer(%r, %r, %r)' % (round(self.layer_thickness, 4), self.exposure_time, self.off_time) class Photon: @@ -409,7 +409,7 @@ def create_layer(self, images, layer_thickness=None, exposure_time=None, off_tim if off_time is None: off_time = self.off_time layer.append_sublayer(SubLayer(data, layer_thickness, exposure_time, off_time)) - return layer + return layer def append_layer(self, images, layer_thickness=None, exposure_time=None, off_time=None): """ diff --git a/setup.py b/setup.py index 1b9d3f4..ee263ce 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = fh.read() setup(name='pyphotonfile', - version='0.2.0', + version='0.2.1', # packages=['pyphotonfile'], author="Heiko Westermann", author_email="heiko+pyphotonfile@orgizm.net",