Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/0.8.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
francisco-dlp committed Apr 1, 2016
2 parents ea59b22 + cd5afa6 commit cf3845c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hyperspy/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,7 @@ def _deepcopy_with_new_data(self, data=None):

def _summary(self):
string = "\n\tTitle: "
string += self.metadata.General.title.decode('utf8')
string += self.metadata.General.title
if self.metadata.has_item("Signal.signal_type"):
string += "\n\tSignal type: "
string += self.metadata.Signal.signal_type
Expand Down
4 changes: 4 additions & 0 deletions hyperspy/tests/signal/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ def test_unfold_image_returns_true(self):
s.axes_manager.set_signal_dimension(2)
nt.assert_true(s.unfold())

def test_print_summary(self):
# Just test if it doesn't raise an exception
self.signal._print_summary()


def _test_default_navigation_signal_operations_over_many_axes(self, op):
s = getattr(self.signal, op)()
Expand Down

0 comments on commit cf3845c

Please sign in to comment.