Closed gummiks closed 6 years ago
@shbhuk The reason for this error is circular import. You are importing PINT_erfautils in utc_tdb and inside utc_tdb you are importing PINT_erfautils. In Python 2. it will not allow you to do such circular imports.
@indiajoe To fix this, should I do a selective import only inside the function that requires it?
In utc_tdb.py I am importing the PINT erfautils module to do the correction from JDUTC to BJDTDB. In PINT I need utc_tdb to convert JDUTC to JDTDB. I wanted to keep utc_tdb as the location for all the time conversion functions. Any suggestions?
I am unable to recreate the second error, do you think that is for the same reason?
I have fixed the first error (circular import) in commit 31bbd2845f54a74104e0a94d8a31166d4272279e . Thanks Joe!
Gummi, can you check and confirm that you no longer see this error.
Awesome ! Thanks for fixing !
On Tue, Mar 20, 2018 at 10:52 AM, shbhuk notifications@github.com wrote:
Closed #18 https://github.com/shbhuk/barycorrpy/issues/18.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shbhuk/barycorrpy/issues/18#event-1531117468, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNtjU67HyLPeU2ZEgbVtyQGLOBbLnT_ks5tgRetgaJpZM4SWbQj .
Hi Shubham !
Testing @develbranch in Python 2.7, with a couple of errors:
First error:
I was able to fix this by changing line 18 to:
import utc_tdb
2nd error: After trying to import again, I get:This function seems to be missing ?
I hacked it by taking that out of the sample script to be able to run it on my computer.