Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
more bugs for srdjan
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Jan 6, 2017
1 parent 2c9eb37 commit a87c762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions seismic.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def __init__(self, data, dtype=float, params=None):
x = self.nxlines
self.nxlines = int(self.data.shape[0] / self.ninlines)
if self.nxlines and x != self.nxlines:
s = "nxlines changed to {} to match data."
print(s.format(self.nxlines))
s = "data shape {} changed to {} to match data."
print(s.format(self.data.shape, (self.ninlines, self.nxlines, self.data.shape[-1])))
self.data = self.data.reshape((self.ninlines, self.nxlines, self.data.shape[-1]))

# Make sure there are no singleton dimensions.
Expand Down
2 changes: 1 addition & 1 deletion seisplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def main(target, cfg):
if cfg['title']:
# Deal with Windows paths: \1 gets interpreted as a group by regex.
newt = re.sub(r'\\', '@@@@@', target)
temp = re.sub(r'_filename', target, cfg['title'])
temp = re.sub(r'_filename', newt, cfg['title'])
title = re.sub(r'@@@', r'\\', temp)
title_ax = fig.add_axes([ssl, 1-mt/h, wsl/w, mt/h])
title_ax = plotter.plot_title(title_ax,
Expand Down

0 comments on commit a87c762

Please sign in to comment.