Skip to content

Commit 8d8e3df

Browse files
committed
cleanup after review
1 parent d0afb27 commit 8d8e3df

4 files changed

Lines changed: 4 additions & 18 deletions

File tree

stixcore/processing/tests/test_end2end.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_complete(orig_fits, current_fits):
7373
raise ValueError(f"{error_c} errors out of {len(orig_fits)}\nnumber of fits files differ")
7474

7575

76-
# @pytest.mark.end2end
76+
@pytest.mark.end2end
7777
@pytest.mark.remote_data
7878
def test_identical(orig_fits, current_fits):
7979
error_c = 0

stixcore/products/CAL/energy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def bunit(self):
8181
return "keV"
8282

8383
@property
84-
def exposure(self):
84+
def min_exposure(self):
8585
# default for FITS HEADER
8686
return self.control["integration_time"].min().to_value(u.s)
8787

stixcore/products/product.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from itertools import chain
44

55
import numpy as np
6-
import pytz
76
from sunpy.time.timerange import TimeRange
87
from sunpy.util.datatype_factory_base import (
98
BasicRegistrationFactory,
@@ -50,7 +49,7 @@
5049

5150
# date when the min integration time was changed from 1.0s to 0.5s needed to fix count and time
5251
# offset issue
53-
MIN_INT_TIME_CHANGE = datetime(2021, 9, 6, 13, tzinfo=pytz.UTC)
52+
MIN_INT_TIME_CHANGE = datetime(2021, 9, 6, 13, tzinfo=datetime.timezone.utc)
5453

5554

5655
def read_qtable(file, hdu, hdul=None):
@@ -1029,7 +1028,7 @@ class L2Mixin(FitsHeaderMixin):
10291028
@property
10301029
def utc_timerange(self):
10311030
if isinstance(self.data["time"], SCETime):
1032-
self.scet_timerange.to_timerange()
1031+
return self.scet_timerange.to_timerange()
10331032
else:
10341033
return TimeRange(
10351034
(self.data["time"][0] - self.data["timedel"][0] / 2).datetime,

stixcore/util/scripts/end2end_testing.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,6 @@ def end2end_pipeline(indir, fitsdir):
169169

170170

171171
if __name__ == "__main__":
172-
p_scet = Product(Path("/data/stix/out/test/e2e/orig/solo_L1_stix-ql-variance_20210626_V02U.fits"))
173-
p_utc = Product(
174-
Path("/data/stix/out/test/e2e/orig/solo_L1_stix-ql-variance_20210626_V02U.fits"),
175-
get_timeformat_from_TIMESYS=True,
176-
)
177-
178-
end2end_pipeline(
179-
indir=Path("/data/stix/out/test/e2e/orig"),
180-
fitsdir=Path("/data/stix/out/test/e2e/current"),
181-
)
182-
183-
quit()
184-
185172
if len(sys.argv) > 2:
186173
zippath = Path(sys.argv[1])
187174
datapath = Path(sys.argv[2])

0 commit comments

Comments
 (0)