Skip to content

Commit

Permalink
ccpimage.save(): handle Path as string name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasja Bloch committed Apr 13, 2022
1 parent d55cf3d commit 905e1a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rfpy/ccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ def save(self, title):
File name for the saved object
"""
title = str(title)

if title is None:
title = "CCP_image.pkl"
Expand Down
2 changes: 1 addition & 1 deletion rfpy/scripts/rfpy_ccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def main():
f2pps=args.f2pps, f2pss=args.f2pss,
nbaz=args.nbaz, nslow=args.nslow)
ccpimage.is_ready_for_prestack = True
ccpimage.save(str(prep_file))
ccpimage.save(prep_file)
print()
print("CCPimage saved to {0}".format(str(prep_file)))

Expand Down

0 comments on commit 905e1a9

Please sign in to comment.