Skip to content

Commit

Permalink
Merge pull request #4 from tomasstolker/actions_yaml
Browse files Browse the repository at this point in the history
Updated the Actions configuration and added Loader to yaml.load
  • Loading branch information
astronomyk authored Oct 21, 2021
2 parents ed5bc5f + 30e1945 commit e8eead1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.github_actions.txt
pip install .
- name: Run Pytest
run: pytest
5 changes: 3 additions & 2 deletions skycalc_ipy/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from astropy import units as u
from astropy.io import fits
from yaml import Loader

from .core import AlmanacQuery, SkyModel

Expand Down Expand Up @@ -216,9 +217,9 @@ def load_yaml(ipt_str):

with open(ipt_str, "r") as fd:
fd = "\n".join(fd.readlines())
opts_dict = yaml.load(fd)
opts_dict = yaml.load(fd, Loader=yaml.FullLoader)
else:
opts_dict = yaml.load(ipt_str)
opts_dict = yaml.load(ipt_str, Loader=yaml.FullLoader)

return opts_dict

Expand Down

0 comments on commit e8eead1

Please sign in to comment.