You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/spherex/spherex_psf.md
+38-15Lines changed: 38 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,18 +225,27 @@ For more information about these changes, see the following webpage: [PSF Erratu
225
225
226
226
Let's first check here if a header update is necessary. We can do that by printing the `VERSION` keyword in the header.
227
227
228
-
For comparisons versions, we can use the Python-internal `Version()` function from the `packaging.version` package. However, since reprocessed images can have version names such as `6.5.4-001` (which are superior to `6.5.4`, for example), we have to write a little wrapper function such that `Version()` can interpret these correctly.
228
+
For comparisons versions, we can use the Python-internal `Version()` function from the `packaging.version` package. However, since reprocessed images can have version names such as `6.5.4+psffix1` (which are superior to `6.5.4`, for example), we have to write a little wrapper function such that `Version()` can interpret these correctly.
229
229
230
230
```{code-cell} ipython3
231
231
def parse_version(v):
232
-
'''
233
-
Parses versions correctly such that "6.5.4-001" is later than "6.5.5".
0 commit comments