Open nhurleywalker opened 3 years ago
Hi @nhurleywalker
That looks like a problem with the version of katpoint you have installed. katpoint < 1.0 still has an observer
attribute on the katpoint.Antenna
objects. Do you maybe have katpoint 1.0a1
installed? You could try with katpoint 0.10
. The older versions of katpoint still use ephem, instead of astropy.
We should probably update astrokat to be compatible with both.
To install the code, I cloned it from github and ran
python setup.py install
So if it has an outdated version of katpoint then it got that from the setup command. I see in the docs you actually recommend using pip to install directly from github, so I wonder if I had done that whether it would have worked properly. Tomorrow I'll see if I can test this or at least review the logs to see where it got katpoint from when it installed. Thanks for the prompt reply!
@nhurleywalker Yes, I tried python setup install
and pip install .
and got different results. The setup method get the pre-release of katpoint, 1.0a1
, while pip method gets katpoint 0.10
. Anyway, the setup.py
has now been updated to limit the katpoint version, so both methods should work.
Please confirm when you have a working installation so that we can close this issue.
I'm attempting to run astrokat-targets.py to find a gain calibrator:
The error seems to be a fault in the instantiation of the Observatory() class? I'm not sure how to fix this.