File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3232 ],
3333 packages = find_packages (),
3434 install_requires = ["numpy" ],
35+ package_data = {'pycam02ucs' : ['cm/examples/*' ]},
3536)
You can’t perform that action at this time.
0 commit comments