Skip to content

Commit 1056179

Browse files
committed
implemented version change after PSF header update. Still placeholder
1 parent 380ab4e commit 1056179

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tutorials/spherex/spherex_psf.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def update_psf_header(old_hdul):
472472
new_hdul.append(old.copy())
473473
474474
## TO DO: UPDATE VERSION
475-
#new_hdul['PRIMARY'].header["VERSION"] = '6.5' # SET NEW VERSION HERE
475+
new_hdul['PRIMARY'].header["VERSION"] = new_hdul['PRIMARY'].header["VERSION"] + "-001" # SET NEW VERSION HERE
476476
477477
return(new_hdul)
478478
```
@@ -483,6 +483,13 @@ We now run this function to create a new HDU list that we will use later.
483483
new_image_hdul = update_psf_header(old_hdul=image_hdul)
484484
```
485485

486+
Let's check if the version keywords was updated:
487+
488+
```{code-cell} ipython3
489+
print(f"Old version: {image_hdul['PRIMARY'].header['VERSION']}")
490+
print(f"Updated version: {new_image_hdul['PRIMARY'].header['VERSION']}")
491+
```
492+
486493
Let's compare the new and old PSF headers to see the difference.
487494

488495
```{code-cell} ipython3

0 commit comments

Comments
 (0)