Skip to content

Commit

Permalink
Updating version number and fixing some stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
carterbox committed Oct 29, 2016
1 parent 36c1680 commit 5593a8a
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 77 deletions.
24 changes: 13 additions & 11 deletions docs/demos/FullReferenceMetrics.ipynb

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions docs/demos/NoReferenceMetrics.ipynb

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docs/demos/Shepp.ipynb

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions docs/demos/StandardPatterns.ipynb

Large diffs are not rendered by default.

56 changes: 40 additions & 16 deletions docs/demos/WetCircles.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import setuptools
from version_hashtag import append_dev_info

version_info = (0, 1, 0)
version_info = (0, 2, 0)
version = '.'.join([str(x) for x in version_info])
version = append_dev_info(version)
with open('VERSION', 'w') as f:
Expand Down
2 changes: 1 addition & 1 deletion xdesign/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def measure(self, phantom, noise=False):
return newdata

def record(self):
self.history.append(self.numpy)
self.history.append(self.list)


def sinogram(sx, sy, phantom, noise=False):
Expand Down
5 changes: 5 additions & 0 deletions xdesign/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ def numpy(self):
"""Return list representation."""
return np.vstack((self.p1._x, self.p2._x))

@property
def list(self):
"""Return list representation."""
return np.hstack((self.p1._x, self.p2._x))

@property
def dim(self):
"""The dimensionality of the entity"""
Expand Down

0 comments on commit 5593a8a

Please sign in to comment.