keflavich / image_registration

Image Registration for Astronomy
MIT License
156 stars 53 forks source link

how to run and see the code in action #22

Closed KingAlawaka closed 6 years ago

KingAlawaka commented 6 years ago

I want to register two images how can I do that. Kind of lost because of so many files... steps I followed

which file I should execute to get an example or something to start with because when I run example files I am getting errors.

Thanks in advance...Sry i am new :D

keflavich commented 6 years ago

See the examples in the example directory, especially https://github.com/keflavich/image_registration/blob/master/examples/Cross%20Correlation.ipynb

KingAlawaka commented 6 years ago

Any idea what went wrong... I have the same folder structure as in the git repo

Traceback (most recent call last): File "Cross Correlation.py", line 16, in import image_registration File "/home/king/.virtualenvs/facecourse-py3/lib/python3.5/site-packages/image_registration-0.2.5.dev0-py3.5.egg/image_registration/init.py", line 19, in from . import tests File "/home/king/.virtualenvs/facecourse-py3/lib/python3.5/site-packages/image_registration-0.2.5.dev0-py3.5.egg/image_registration/tests/init.py", line 1, in from .registration_testing import (upsample_ft_raw, make_offset_images, File "/home/king/.virtualenvs/facecourse-py3/lib/python3.5/site-packages/image_registration-0.2.5.dev0-py3.5.egg/image_registration/tests/registration_testing.py", line 11, in from astropy.tests.helper import pytest File "/home/king/.virtualenvs/facecourse-py3/lib/python3.5/site-packages/astropy/tests/helper.py", line 14, in import pytest ImportError: No module named 'pytest'

keflavich commented 6 years ago

pytest is an external module; it looks like it is required at import time, even though it shouldn't be. Just install it.