@@ -857,10 +857,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
857857 timestamp_list.append(datetime.datetime.strptime(m["image_request_start_timestamp"], "%Y-%m-%d %H:%M:%S.%f UTC"))
858858 elif ("Image request start" in m):
859859 timestamp_list.append(datetime.datetime.strptime(m["Image request start"], "%Y-%m-%d %H:%M:%S.%f UTC"))
860- elif (m == {}): # pragma: nocover
860+ elif (m == {}): # pragma: nocover-ok
861861 # a problematic file, skip it
862862 pass
863- else: # pragma: nocover
863+ else: # pragma: nocover-ok
864864 raise SRSError("Unexpected timestamp metadata format")
865865
866866 # convert to return type
@@ -987,7 +987,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
987987 timestamp_list = []
988988 if (no_metadata is False):
989989 timestamp_list = timestamp_np.tolist()
990- else: # pragma: nocover
990+ else: # pragma: nocover-ok
991991 raise SRSUnsupportedReadError("Unexpected Spectrograph file format")
992992
993993 # convert to return type
@@ -1091,10 +1091,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
10911091 for m in meta:
10921092 if ("image_request_start" in m):
10931093 timestamp_list.append(datetime.datetime.strptime(m["image_request_start"], "%Y-%m-%d %H:%M:%S.%f UTC"))
1094- elif (m == {}): # pragma: nocover
1094+ elif (m == {}): # pragma: nocover-ok
10951095 # a problematic file, skip it
10961096 pass
1097- else: # pragma: nocover
1097+ else: # pragma: nocover-ok
10981098 raise SRSError("Unexpected timestamp metadata format")
10991099
11001100 # convert to return type
@@ -1215,7 +1215,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
12151215 #
12161216 # NOTE: bytscl_values was not present in early THEMIS skymap files, so
12171217 # we conditionally add it
1218- if ("bytscl_values" in item_recarray.generation_info[0].dtype.names): # pragma: nocover
1218+ if ("bytscl_values" in item_recarray.generation_info[0].dtype.names): # pragma: nocover-ok
12191219 generation_info_obj.bytscl_values = item_recarray.generation_info[0].bytscl_values
12201220
12211221 # flip certain things
@@ -2811,7 +2811,7 @@ <h2 id="raises">Raises</h2>
28112811 #
28122812 # NOTE: bytscl_values was not present in early THEMIS skymap files, so
28132813 # we conditionally add it
2814- if ("bytscl_values" in item_recarray.generation_info[0].dtype.names): # pragma: nocover
2814+ if ("bytscl_values" in item_recarray.generation_info[0].dtype.names): # pragma: nocover-ok
28152815 generation_info_obj.bytscl_values = item_recarray.generation_info[0].bytscl_values
28162816
28172817 # flip certain things
@@ -2996,10 +2996,10 @@ <h2 id="raises">Raises</h2>
29962996 for m in meta:
29972997 if ("image_request_start" in m):
29982998 timestamp_list.append(datetime.datetime.strptime(m["image_request_start"], "%Y-%m-%d %H:%M:%S.%f UTC"))
2999- elif (m == {}): # pragma: nocover
2999+ elif (m == {}): # pragma: nocover-ok
30003000 # a problematic file, skip it
30013001 pass
3002- else: # pragma: nocover
3002+ else: # pragma: nocover-ok
30033003 raise SRSError("Unexpected timestamp metadata format")
30043004
30053005 # convert to return type
@@ -3795,10 +3795,10 @@ <h2 id="raises">Raises</h2>
37953795 timestamp_list.append(datetime.datetime.strptime(m["image_request_start_timestamp"], "%Y-%m-%d %H:%M:%S.%f UTC"))
37963796 elif ("Image request start" in m):
37973797 timestamp_list.append(datetime.datetime.strptime(m["Image request start"], "%Y-%m-%d %H:%M:%S.%f UTC"))
3798- elif (m == {}): # pragma: nocover
3798+ elif (m == {}): # pragma: nocover-ok
37993799 # a problematic file, skip it
38003800 pass
3801- else: # pragma: nocover
3801+ else: # pragma: nocover-ok
38023802 raise SRSError("Unexpected timestamp metadata format")
38033803
38043804 # convert to return type
@@ -3986,7 +3986,7 @@ <h2 id="raises">Raises</h2>
39863986 timestamp_list = []
39873987 if (no_metadata is False):
39883988 timestamp_list = timestamp_np.tolist()
3989- else: # pragma: nocover
3989+ else: # pragma: nocover-ok
39903990 raise SRSUnsupportedReadError("Unexpected Spectrograph file format")
39913991
39923992 # convert to return type
0 commit comments