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

faceting_skymodel option fails #162

Closed
Joshuaalbert opened this issue Nov 22, 2016 · 12 comments
Closed

faceting_skymodel option fails #162

Joshuaalbert opened this issue Nov 22, 2016 · 12 comments

Comments

@Joshuaalbert
Copy link
Contributor

I produced my own skymodel by combined all the sub bands of the direction independent high res models then using pybdsm with bbs_patches='source' to avoid sources that only pop up at fainter end and lower frequencies but it fails. The last line in the log file is:

INFO - factor - Using /net/para34/data1/albert/products/goods-n-prefactor-results/FullBand-Combined.skymodel as sky model for source avoidance and DDE calibrator selection (if desired)
@darafferty
Copy link
Collaborator

After printing that line, it tries to load the sky model (see line 568 of https://github.com/lofar-astron/factor/blob/master/factor/process.py) -- can you load it with lsmtool outside of Factor?

@Joshuaalbert
Copy link
Contributor Author

Hey David sorry I just noticed your reply to this. I'll try when I'm back from travels Monday.

@Joshuaalbert
Copy link
Contributor Author

@darafferty it works but there is something wrong with it:

In [3]: lsmtool.load('FullBand-Combined.skymodel')
WARNING: Couldn't write lextab module u'angle_lextab'. [Errno 13] Permission denied: u'/software/local/lib64/python2.7/site-packages/astropy/coordinates/angle_lextab.py'
WARNING: Couldn't create u'angle_parsetab'. [Errno 13] Permission denied: u'/software/local/lib64/python2.7/site-packages/astropy/coordinates/angle_parsetab.py'
Out[3]: <lsmtool.skymodel.SkyModel at 0x7f7340c48dd0>

@Joshuaalbert
Copy link
Contributor Author

Also this is a different issue than #178.

@AHorneffer
Copy link
Contributor

WARNING: Couldn't write lextab module u'angle_lextab'. [Errno 13] Permission denied: u'/software/local/lib64/python2.7/site-packages/astropy/coordinates/angle_lextab.py'
WARNING: Couldn't create u'angle_parsetab'. [Errno 13] Permission denied: u'/software/local/lib64/python2.7/site-packages/astropy/coordinates/angle_parsetab.py'

Did you check if you are allowed to read and execute these files? And if the *.pyc files exists and you are allowed to read and execute them? And that they are newer than the *.py files?

@Joshuaalbert
Copy link
Contributor Author

No I'm only able to read *.py and *.pyc files in that folder. Should I have +x access?

@AHorneffer
Copy link
Contributor

Ah, not, execute access doesn't seem to be needed for these files.

Can you do:
import astropy.coordinates.angle_parsetab
from another python shell?

@Joshuaalbert
Copy link
Contributor Author

I am able to import that.

@darafferty
Copy link
Collaborator

Looks a lot like the error here: https://github.com/voidlinux/void-packages/issues/1695

@darafferty
Copy link
Collaborator

Actually, I reread your earlier post and it could be that these really are warnings and not errors, as it does seem that lsmtool loads the sky model successfully. If that's the case, I don't know why it doesn't work inside Factor. Can you try it again with Factor, in case something changed since you ran it the first time?

@Joshuaalbert
Copy link
Contributor Author

Now there are no issues... running that. There are several changes in the paracluster at leiden though. We had a fedora upgrade to 25, and the lofar software I'm sourcing is for 23. The lsmtool is most recent from github. Either way, this seems not to be an issue at the moment.

@darafferty
Copy link
Collaborator

OK. Reopen if there are still problems.

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

No branches or pull requests

3 participants