Skip to content

Commit b9a1aa2

Browse files
Merge pull request #459 from fchapoton/typos_and_other_details
a few typos and minor details
2 parents c236a4e + 1f15676 commit b9a1aa2

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

anise-py/tests/test_almanac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_convert_tpc():
197197
almanac = new_meta.process()
198198

199199
earth_j2k = almanac.frame_info(Frames.EARTH_J2000)
200-
assert earth_j2k.mu_km3_s2 != None
200+
assert earth_j2k.mu_km3_s2 is not None
201201
almanac.describe()
202202

203203

anise-py/tutorials/Tutorial 05 - Using frame kernels and text planetary kernels.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"\n",
3333
"### Version compatibility\n",
3434
"\n",
35-
"ANISE guarantees to _not_ change the structure of these kernels in between patch versions (e.g. version `0.3.0` and version `0.3.99` are garanteed to have the compatible kernels). However, until version `1.0.0`, the structure _may_ change and if so, the updated version of the default PCA and EPA files will be added to the Nyx Space cloud.\n",
35+
"ANISE guarantees to _not_ change the structure of these kernels in between patch versions (e.g. version `0.3.0` and version `0.3.99` are guaranteed to have the compatible kernels). However, until version `1.0.0`, the structure _may_ change and if so, the updated version of the default PCA and EPA files will be added to the Nyx Space cloud.\n",
3636
"\n",
3737
"Since version `0.1.0`, the structure of the kernels has _not_ changed. However, the ANISE version is encoded at the start of each kernel. This is only used if the data set cannot be properly decoded to inform the user of the expected ANISE version and the one that they're trying to load. In other words, although there is a version `0.3` of the PCK08 and PCK11 kernels, the files used in version `0.1.0` are still compatible."
3838
]

anise/src/naif/kpl/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub fn parse_bytes<R: BufRead, I: KPLItem>(
125125
};
126126
assignments.push(assignment);
127127
} else if let Some(mut assignment) = assignments.pop() {
128-
// This is a continuation of the previous line, so let's grab the data and append the value we're reding now.
128+
// This is a continuation of the previous line, so let's grab the data and append the value we're reading now.
129129
// We're adding the full line with all of the extra spaces because the parsing needs those delimiters to not bunch together all of the floats.
130130
assignment.value += &line;
131131
assignments.push(assignment);

anise/tests/ephemerides/transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn spice_verif_iau_moon(almanac: Almanac) {
219219
dbg!(rss_pos_km, rss_vel_km_s);
220220

221221
// ANISE uses hifitime which is more precise than SPICE at time computations.
222-
// The Moon angular acceleration is expressed in centuries sicne J2000, where Hifitime does not suffer from rounding errors.
222+
// The Moon angular acceleration is expressed in centuries since J2000, where Hifitime does not suffer from rounding errors.
223223
assert!(rss_pos_km < 0.004);
224224
assert!(rss_vel_km_s < 1e-5);
225225
}

anise/tests/test_analysis/lro-occultation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@
2828
# Compute occultation
2929
occult = sp.occult(front, fshape, fframe, back, bshape, bframe, abcorr, obsrvr, epoch)
3030
assert occult == rslt, f"want {rslt} got {occult}"
31-

anise/tests/test_analysis/spk_validation_plots.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88

99
def is_on_github_actions():
10-
if "CI" not in environ or not environ["CI"] or "GITHUB_RUN_ID" not in environ:
11-
return False
12-
else:
13-
return True
10+
return ("CI" in environ and environ["CI"] and "GITHUB_RUN_ID" in environ)
11+
1412

1513
if __name__ == '__main__':
1614

@@ -36,7 +34,7 @@ def is_on_github_actions():
3634

3735
plt = px.scatter(subset,
3836
x='ET Epoch (s)',
39-
y=f'Absolute difference',
37+
y='Absolute difference',
4038
color='source frame',
4139
title=f"Validation of {name} for {kind}")
4240

0 commit comments

Comments
 (0)