Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Thomas Robitaille
    @astrofrog
    :)
    Thomas Robitaille
    @astrofrog
    I’m opening all the astropy-helpers 1.2 PRs, hope it goes well...
    Brigitta Sipocz
    @bsipocz
    :+1:
    actually starting them now is the best timing, there is no backlog on ci on a sunday night and we can sort out if there is any problem in normal hours
    Thomas Robitaille
    @astrofrog
    Huh there’s something weird here
    I think it’s when we git install astropy it somehow gets an RC version for numpy
    that seems like a setuptools bug to some extent
    anyway, I need sleep first
    Thomas Robitaille
    @astrofrog
    Screen Shot 2016-06-20 at 10.15.12.png
    I like scripts
    Thomas Robitaille
    @astrofrog
    @bsipocz - I’m working on trying to understand WHY some of the conda builds are failing - even if it’s using builds from astropy-ci-extras, it shouldn’t be failing, it seems like there are numpy linking issues
    Thomas Robitaille
    @astrofrog
    @bsipocz - I’ve managed to narrow it down to a small example: https://travis-ci.org/astrofrog/wcsaxes/builds/138865656
    basically conda is incorrectly picking astropy 1.0.3 from ci-extras
    Thomas Robitaille
    @astrofrog
    @bsipocz - can you check conda/conda#2777 and let me know if you agree with the bug report, or if I made any mistakes?
    Thomas Robitaille
    @astrofrog
    @bsipocz - I commented on the wrong issue, so will delete my comment and add it to the ci-helpers PR
    Brigitta Sipocz
    @bsipocz
    gitter is horries, I never got notifications about these messages above.
    Hopefully now everything will pass on appveyor, it seems they've just uploaded the windows 1.2 builds making the previous build just fail
    Thomas Robitaille
    @astrofrog
    yeah, not sure why notifications sometimes work sometimes not
    ok cool
    thanks for the fixes!
    Brigitta Sipocz
    @bsipocz
    @astrofrog - Would you mind temporarily switch off the mandatory status checks for ci-helpers? It's passing now, but there was a silly merge in the meantime, so now I would need to rebase and wait for all the tests run again.
    Thomas Robitaille
    @astrofrog
    @bsipocz - done
    Brigitta Sipocz
    @bsipocz
    thanks, you can switch it back now
    Daniel Mendes
    @Danni3l
    I'm not sure if it's here to ask a question, i'm wanted to know if there is anything like the .append command from numpy in astropy ? i know the command add_row from astropy.table.Table, but i use FITS tables..?
    Thomas Robitaille
    @astrofrog
    @Danni3l - sorry for the delay, in future ask your question in the astropy channel (this is ci-helpers) since it is more active :) But since you are here, I can help you. Basically, if you have FITS files, the easiest way to append rows is to read in the FITS file via the Table interface and use add_row
    so e.g.:
    t = Table.read('myfile.fits')
    t.add_row(...)
    t.write('mynewfile.fits')
    Daniel Mendes
    @Danni3l
    Thank you for your help !
    Daniel Mendes
    @Danni3l

    When i try to open the fits file with t = Table.read('myfile.fits') i got an error.*
    My first idea was to open it like:

    inp = fits.open(sample) 
    tbl = inp[1].data
    tbl = Table(ttbl)

    but doing this i also get an error when i use add_row()

    ---------------------------------------------------------------------------
    ValueError                                Traceback (most recent call last)
    C:\Users\daniel\Desktop\specphotoClassif5QGS.py in <module>()
        148     qTbl = Table(qtbl)
        149
    --> 150     mtbl.add_row(gTbl)
        151     mtbl.add_row(qTbl)
        152     '''
    
    C:\Users\daniel\Downloads\WinPython-64bit-3.4.4.2\python-3.4.4.amd64\lib\site-packages\astropy\table\table.py in add_row(self, vals, mask)
       2030              3   6   9
       2031         """
    -> 2032         self.insert_row(len(self), vals, mask)
       2033
       2034     def insert_row(self, index, vals=None, mask=None):
    
    C:\Users\daniel\Downloads\WinPython-64bit-3.4.4.2\python-3.4.4.amd64\lib\site-packages\astropy\table\table.py in insert_row(self, index, vals, mask)
       2119
       2120             if len(self.columns) != len(vals):
    -> 2121                 raise ValueError('Mismatch between number of vals and columns')
       2122
       2123             if mask is not None:
    
    ValueError: Mismatch between number of vals and columns
    Thomas Robitaille
    @astrofrog
    @bsipocz - based on discussion in the conda-forge gitter channel, I think we might want to pre-emptively fix setuptools to <= 23 for now in ci-helpers, what do you think?
    Brigitta Sipocz
    @bsipocz
    @astrofrog - Sure, I don't recall any package/issue that would need a newer one.
    Brigitta Sipocz
    @bsipocz
    While you're at ci-helpers, could you have a look at astropy/ci-helpers#124 This would avoid duplicate installs of numpy/astropy when we put a version restriction on them.
    Thomas Robitaille
    @astrofrog
    @bsipocz - ok, I guess if no packages have seen that issue maybe we don't need to worry about it. I wonder if maybe it only affects numpy-dev builds (haven't had time to check)
    Will try and check the other issue you mention soon - a bit snowed under this week though!
    Brigitta Sipocz
    @bsipocz
    Well, you saw it, and I guess the only reason other packages didn't is that they don't build against numpy-dev on appveyor. So it's totally fine to add the restriction.
    Thomas Robitaille
    @astrofrog
    @bsipocz - just to check, are you around?
    Brigitta Sipocz
    @bsipocz
    yes, hacking at astrohackweek :)
    Thomas Robitaille
    @astrofrog
    awesome!
    actually I think I figured out the problem (this is a ci-helpers thing, will open issue if I can’t fix it now)
    what are you hacking on?
    Brigitta Sipocz
    @bsipocz
    nothing that works...
    Thomas Robitaille
    @astrofrog
    sounds like a hack day!
    Brigitta Sipocz
    @bsipocz
    well, it was just hopeless for me, but still got 1.5 hours to go, so maybe can fix some jupyter testing issues for someone. For the science hack we hack on some Orion YSOs with pan-starrs and apogee data, but only got to the cross matches, etc.
    What is the issue?
    Thomas Robitaille
    @astrofrog
    Oh I just opened astropy/ci-helpers#131 but I realized it’s not urgent because it’s a use case which is not useful ;)
    I’ve had mixed luck with hack days, half the time I don’t end up getting much done at all, but it’s still fun :)
    Brigitta Sipocz
    @bsipocz
    oh, I think we already have one similar one open. astropy/ci-helpers#84
    Well, I still learnt a lot, and probably next time I should prepare more to bring my own project to hack on.
    Thomas Robitaille
    @astrofrog
    Ok, I closed #131 and added a note to #84