File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
483483new_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+
486493Let's compare the new and old PSF headers to see the difference.
487494
488495``` {code-cell} ipython3
You can’t perform that action at this time.
0 commit comments