These are chat archives for astropy/astropy

20th
May 2014
Adam Ginsburg
@keflavich
May 20 2014 09:20
anyone else noticing debug statements popping up when instantiating WCS objects today?
Brigitta Sipocz
@bsipocz
May 20 2014 13:27
I've a git question: Is there a way to work on two separate branches at the same time (e.g. from two different terminals)? Occasionally it would be useful, when there is a build or test running on one branch, to work on another in the meantime.
Usually the modifications are not mature enough for a commit, so I started heavily using stash and now understand why most of the online manuals warns to stay away from it.
Erik Tollerud
@eteq
May 20 2014 13:41
@bsipocz - the short answer is no. git actually changes the filesystem, so whenever you switch from one branch to another, everything in the previous branch goes away
the way I deal with what you want to do is that I sometimes have two different astropy directories locally (e.g. astropy and astropy2) and use them independently. I just do cp -r astropy astropy2 and it will remember all the git settings like remote names and such (they're all in the hidden .git subdirectory which gets copied with everything else)
Brigitta Sipocz
@bsipocz
May 20 2014 13:45
Yep, that is what I was thinking of doing, but was a worried it would generate even bigger mess than all the stashes combined.
Thomas Robitaille
@astrofrog
May 20 2014 15:31
@bsipocz - instead of using stash, I basically commit the changes with a WIP message then later I amend the commit
Erik Tollerud
@eteq
May 20 2014 15:57
@bsipocz - when I’m usually doing that, I only use the astropy2 for temporary work, and immediately delete it after I’ve pushed up whatever I’m working on, and re-copy it when I want to do two things at once. Then astropy is the “authoritative” version and it doesn’t sprial out of control. But I suppose it’s mostly personal preference
Brigitta Sipocz
@bsipocz
May 20 2014 16:47
Thanks @eteq and @astrofrog. I'll check which approach would fit me best.
Erik Tollerud
@eteq
May 20 2014 17:42
@taldcroft - should I merge #2513 ? Then you can PR against master for the SkyCoord docs. Otherwise, you can PR against my branch there
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:08
Ack, astropy_helpers is not working for me. Is there some change in how to do a git install python setup.py develop?
Fail is when I try to build docs:
(astropy)neptune$ make html
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v1.1.3

Exception occurred:
  File "/Users/aldcroft/git/astropy/docs/conf.py", line 29, in <module>
    from astropy_helpers.sphinx.conf import *
ImportError: No module named astropy_helpers.sphinx.conf
The full traceback has been saved in /var/folders/_3/rmv7z1hx5jggk39p65j0dcxr0000gn/T/sphinx-err-M4dSsQ.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Erik Tollerud
@eteq
May 20 2014 19:10
Did you try python setup.py build_sphinx? I’m not sure if that will help, but I just did that right now and it worked without any problems
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:11
OK, that is working.
I've always gone into the docs/ dir and make html (which previously worked with a python setup.py develop install).
Thomas Robitaille
@astrofrog
May 20 2014 19:12
@taldcroft - presumably for make html to work, one would either have to add .. to the sys.path, or something similar
alternatively make html would need to download it's own version of astropy_helpers
Erik Tollerud
@eteq
May 20 2014 19:14
@astrofrog - I’m not sure I understand why? If python setup.py develop works, make html should still work, shouldn’t it? That is, all it needs is to be able to import astropy
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:14
The developer docs need to be updated if make html no longer works out of the box: http://astropy.readthedocs.org/en/latest/install.html#building-documentation
Scroll down to the end of the section and it says cd docs; make html should work.
Thomas Robitaille
@astrofrog
May 20 2014 19:15
Ok - there's nothing to say we can't get make html to work, but we need to iron out such issues
I think it was just not tested during the astropy-helpers testing
I need to fix some more urgent issues (all affiliated package testing is broken :-/) but once that's done we can look into it
I'll fix the astropy-helpers issues in a few hours if @embray doesn't get to it first
Erik Tollerud
@eteq
May 20 2014 19:17
better now than at release, eh ;)
Thomas Robitaille
@astrofrog
May 20 2014 19:17
yeah!
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:18
Hmm, python setup.py build_sphinx is annoying because it rebuilds the entire astropy and docs (even without touching anything).
Thomas Robitaille
@astrofrog
May 20 2014 19:18
I agree, it's not ideal
and I do think we can figure something out
for example, how about doing
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:19
ok, thanks.
can i manually install astropy_helpers somehow?
Thomas Robitaille
@astrofrog
May 20 2014 19:19
import sys
sys.path.insert(0,'..')
before the conf import
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:19
OK, will try.
Thomas Robitaille
@astrofrog
May 20 2014 19:19
in theory, yes, astropy_helpers can be installed manually as a normal package
but
if you do that it won't install astropy properly because of a bug, issue #2521
I'm going to spend a little time later trying to iron out some of the astropy-helpers issues
@taldcroft - can you open an issue for the make html? something has to be done either way
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:23
It needs to be sys.path.insert(0, os.path.join('..', 'astropy_helpers'))
OK will do.
Thomas Robitaille
@astrofrog
May 20 2014 19:26
@taldcroft - thanks!
Ghost
@ghost~53638049048862e761fa0380
May 20 2014 19:31
astropy/astropy#2532