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
ConnectionResetError: [WinError 10054] #289
Comments
Could you please specify :
For what it is worth, I find that on
worked perfectly. |
Hi, here is the out-put information: Python 3.8.3 (default, Jul 2 2020, 16:21:59)
Traceback (most recent call last): I am not sure if there is net restrictions. I am now at XInjiang China. |
I tried on sncosmo version 2.3 (pulling the latest development version master branch) and ran that on python 3.7. I am still able to run this. So, this might be related to net restrictions. Could you please check if you can download this file: The sdss bandpass file is : The file looks like (first few lines):
If you cannot reach the file, then we would know it is a restriction problem. It is a bit surprising as you seem to be able connect to github. |
Thanks for check, I have tried to download the above file, and I can reach this one. I have modified the ip-pointing to github, so I can connect github. I wonder if I can download all the bandpass files to sncosmo, but where do I put them? |
By the way, I have light curves in AB magnitudes, how can I convert them to flux so that they can fit for sncosmo? |
It is a bit confusing then why the download did now work. You can download the bandpasses. The directory information is described in https://sncosmo.readthedocs.io/en/stable/configuration.html in the The bandpass files are in locations like
You can convert the mags to flux as
|
@yun201720 Is this issue happening on Windows? |
When I try to get bandpass using ''band = sncosmo.get_bandpass('sdssi')'', the server refused to give me any thing. This is also the problem when I try to get a model source with "model = sncosmo.Model(source='salt2')", I do not know why.
The text was updated successfully, but these errors were encountered: