Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test caching of astrometry and using libcfitsio packages #712

Closed
wants to merge 19 commits into from

Conversation

jamessynge
Copy link
Contributor

No description provided.

Testing cfitsio-bin and cfitsio* as packages instead of libcfitsio(-dev|-bin|5).

Travis not updated to more recent Ubuntu release, probably a good reason to use a container approach for building as that will probably provide us more choices of base images.
.travis.yml Outdated
@@ -49,13 +50,21 @@ addons:
- libbz2-dev
- swig
- cfitsio-dev
- cfitsio
- cfitsio*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the cfitsio* just be one line? And looks like this is failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, doesn't work at all. I'll have to stick with the current install method for the moment.

.travis.yml Outdated
@@ -8,8 +8,9 @@ python:
env:
- PANDIR=$HOME POCS=$TRAVIS_BUILD_DIR PANUSER=$USER ARDUINO_VERSION=1.8.1
before_install:
- pwd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just to see in logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

.travis.yml Outdated
cd astrometry.net-0.72 && \
make && \
make py && \
make install INSTALL_DIR=$PANDIR/astrometry && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dangling &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Will probably make more submits (errors) before I'm ready to request a review.

Not sure if this error was related to the IERS A bulletin or due to astrometry.net being offline:
```
$ python pocs/utils/data.py --folder $PANDIR/astrometry/data
Downloading http://maia.usno.navy.mil/ser7/finals2000A.all
|==========================================| 3.2M/3.2M (100.00%)         0s
Failed to download IERS A bulletin: invalid literal for int() with base 10: 'N'
```
Testing a pytest hook addition to workaround the error with the contents of the IERS Bulletin A.
The hook calls an astroplan method that installs a workaround IFF the bulletin couldn't be downloaded.
@codecov
Copy link

codecov bot commented Oct 26, 2018

Codecov Report

Merging #712 into develop will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #712      +/-   ##
===========================================
- Coverage    80.09%   80.03%   -0.06%     
===========================================
  Files           61       61              
  Lines         5078     5078              
  Branches       693      693              
===========================================
- Hits          4067     4064       -3     
- Misses         817      820       +3     
  Partials       194      194
Impacted Files Coverage Δ
pocs/dome/astrohaven.py 71.05% <0%> (-2.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ce3e19...bc40212. Read the comment docs.

Remove uses of sudo, remove "sudo: required", which apparently can unlock better performance.

Incrementally add to PATH as packages are installed.
Previous attempt with "arduino --version" to show the version number failed. Current version (1.8.7) documentation claims that command works. Let's see.
@jamessynge
Copy link
Contributor Author

Closing in favor of other changes.

@jamessynge jamessynge closed this Nov 9, 2018
@wtgee wtgee deleted the jamessynge-astrometry-cache-test branch October 13, 2019 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants