Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed Jun 13, 2024
1 parent 6ec5a8b commit 334aeca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/imaging_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@
###############################################################################
# Convert the coordinates and make a map in Helioprojective and rotate so "North" is "up"

hpc_ref = coord.transform_to(
Helioprojective(observer=solo, obstime=fd_bp_map.date_average)
) # Center of STIX pointing in HPC
hpc_ref = coord.transform_to(Helioprojective(observer=solo, obstime=vis_tr.center)) # Center of STIX pointing in HPC
header_hp = make_fitswcs_header(bp_image, hpc_ref, scale=[10, 10] * u.arcsec / u.pix, rotation_angle=90 * u.deg + roll)
hp_map = Map((bp_image, header_hp))
hp_map_rotated = hp_map.rotate()
Expand Down
8 changes: 4 additions & 4 deletions stixpy/timeseries/tests/test_quicklook.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@pytest.fixture()
def ql_lightcurve():
ql_lc = TimeSeries(
r"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-lightcurve_20200506_V02.fits"
"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-lightcurve_20200506_V02.fits"
)
return ql_lc

Expand All @@ -18,7 +18,7 @@ def ql_lightcurve():
@pytest.fixture()
def ql_background():
ql_bkg = TimeSeries(
r"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-background_20200506_V02.fits"
"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-background_20200506_V02.fits"
)
return ql_bkg

Expand All @@ -27,7 +27,7 @@ def ql_background():
@pytest.fixture()
def ql_variance():
ql_var = TimeSeries(
r"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-variance_20200506_V02.fits"
"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/QL/solo_L1_stix-ql-variance_20200506_V02.fits"
)
return ql_var

Expand All @@ -36,7 +36,7 @@ def ql_variance():
@pytest.fixture()
def hk_maxi():
hk_maxi = TimeSeries(
r"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/HK/solo_L1_stix-hk-maxi_20200506_V02.fits"
"https://pub099.cs.technik.fhnw.ch/fits/L1/2020/05/06/HK/solo_L1_stix-hk-maxi_20200506_V02.fits"
)
return hk_maxi

Expand Down

0 comments on commit 334aeca

Please sign in to comment.