Skip to content

Commit 614b811

Browse files
committed
Merge branch 'master' of github.com:njsmith/pycam02ucs
2 parents 5b097a1 + d198ce6 commit 614b811

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pycam02ucs/cm/viscm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,16 @@ def toggle(*args):
258258

259259
images = []
260260
image_args = []
261-
example_dir = os.path.dirname(__file__) + "/examples/"
261+
example_dir = os.path.join(os.path.dirname(__file__), "examples")
262262

263-
images.append(np.loadtxt(example_dir + "hist2d.txt"))
263+
images.append(np.loadtxt(os.path.join(example_dir, "hist2d.txt")))
264264
image_args.append({"aspect": "equal",
265265
"origin": "lower",
266266
"interpolation": "nearest",
267267
"vmin": 0})
268268

269-
images.append(np.loadtxt(example_dir
270-
+ "st-helens_before-modified.txt.gz").T)
269+
images.append(np.loadtxt(os.path.join(example_dir,
270+
"st-helens_before-modified.txt.gz")).T)
271271
image_args.append({})
272272

273273
# Adapted from http://matplotlib.org/mpl_examples/images_contours_and_fields/pcolormesh_levels.py

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@
3232
],
3333
packages=find_packages(),
3434
install_requires=["numpy"],
35+
package_data={'pycam02ucs': ['cm/examples/*']},
3536
)

0 commit comments

Comments
 (0)