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

Can't download Paranal package #105

Closed
Isa29bella opened this issue Jun 13, 2023 · 5 comments
Closed

Can't download Paranal package #105

Isa29bella opened this issue Jun 13, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@Isa29bella
Copy link
Contributor

Hi,
I tried to download the Paranal location package to run a simulation with HAWKI. The VLT and HAWKI packages downloaded fine, as did the Armazones, ELT and MICADO packages I used previously. However, for the Paranal package, I get the following error: HTTP Error 404: Not Found

Here is the most basic version of what I tried to do:

import scopesim as sim
sim.download_packages(["Paranal"])

Thanks :)

@teutoburg teutoburg added bug Something isn't working IRDB labels Jun 14, 2023
@hugobuddel
Copy link
Collaborator

Thanks, something seems to have gone wrong with uploading the package. I'll upload the package later today.

In the meantime, you could perhaps use an older version of the package with:

import scopesim as sim
sim.download_packages(["Paranal"], release="2021-12-01")

@hugobuddel
Copy link
Collaborator

The latest Paranal package is uploaded, so you should be able to download the file as normal. Could you please close the issue if everything indeed works as expected?

I do think I've identified the main cause of the problem (see later issue), so hopefully we can prevent this from happening again.

@Isa29bella
Copy link
Contributor Author

Indeed the download works now, thanks a lot!
However, when I try to use HAWKI (which was my original goal), I now get a new error:
Running:

sim.UserCommands(use_instrument="HAWKI")

Produces:

ParserError: while parsing a block mapping
  in "C:\Uni\Astro\10Semester\ELT\inst_pkgs\HAWKI\HAWKI.yaml", line 1, column 1
expected <block end>, but found '<block sequence start>'
  in "C:\Uni\Astro\10Semester\ELT\inst_pkgs\HAWKI\HAWKI.yaml", line 31, column 2

Should I open a separate issue for that and close this one? As far as I can tell this looks like an unrelated problem...
Sorry to bother you with all of this.

@hugobuddel
Copy link
Collaborator

No problem, these things should just work, so thanks for reporting them!

Apparently there was a similar issue with the HAWKI package (bit different), so I've released a new HAWKI package. The VLT package was all right.

Note that what you can also do is clone this repository, and then let ScopeSim search that path. E.g.:

sim.rc.__config__["!SIM.file.local_packages_path"] = "/path/to/irdb/clone"

Nevertheless, we should have done a better job.

@Isa29bella
Copy link
Contributor Author

Now it works, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants