Skip to content

Commit

Permalink
Merge pull request #14 from fookatchu/develop
Browse files Browse the repository at this point in the history
v0.2.1, minor fixes
  • Loading branch information
fookatchu authored Jan 19, 2020
2 parents e73e6fa + 7f88cc6 commit f4e0496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyphotonfile/photonfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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:
Expand Down Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f4e0496

Please sign in to comment.