choderalab / ensembler

Automated omics-scale protein modeling and simulation setup.
http://ensembler.readthedocs.io/
GNU General Public License v2.0
52 stars 21 forks source link

fix os.symlink call for gather_templates --structure_paths - use abspath #74

Open rafwiewiora opened 8 years ago

rafwiewiora commented 8 years ago

Fixes https://github.com/choderalab/ensembler/issues/73

(that's adding a trailing new line at the end in the diff)

jchodera commented 8 years ago

Can you add a corresponding test to catch the original problem this was designed to solve?

jchodera commented 8 years ago

To get the travis tests to run, you'll have to change this line from Miniconda-latest-Linux to Miniconda2-latest-Linux.

jchodera commented 8 years ago

Nevermind, I fixed this in #75

rafwiewiora commented 8 years ago

re test: there was one already (https://github.com/choderalab/ensembler/blob/master/ensembler/tests/test_initproject.py#L101) but that uses the absolute path, hence works.

If I want to test using a relative path - do I have guarantee that the current folder will always be the folder in which the test script sits? Not sure how Travis works with that kind of thing.

jchodera commented 8 years ago

If I want to test using a relative path - do I have guarantee that the current folder will always be the folder in which the test script sits? Not sure how Travis works with that kind of thing.

I would write a test that does the following:

rafwiewiora commented 8 years ago

Thanks! Test added.

jchodera commented 8 years ago

We're still working on fixing tests---sorry! See #80

rafwiewiora commented 8 years ago

No problem!