ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.83k stars 160 forks source link

demo scripts: naming and paths #51

Closed jeremymanning closed 7 years ago

jeremymanning commented 7 years ago

all of the demo scripts have names that start with hypertools_demo-, which is redundant. i propose removing hypertools_demo- from each script name.

also, some of the paths are relative rather than absolute. for example, the sample_data folder is only visible within the examples folder, but it is referenced using relative paths. this causes some of the demo functions (e.g. hypertools_demo-align.py) to fail. references to sample_data could be changed as follows (from within any scripts that reference data in sample_data):

import os datadir = os.path.join(os.path.realpath(__file__), 'sample_data')

andrewheusser commented 7 years ago

done!

andrewheusser commented 7 years ago

forgot to update the example paths first time I closed, those are now good to go. some odd behavior with 'examples/pandas.py'. hypertools got confused thinking that script was pandas...so I renamed it to pandas_example. none of the other demo scripts seem to have that problem but will keep an eye out