INNER CODE UNIT · Python
save_pickles
jobovy/gaia_tools · gaia_tools/util/__init__.py:6
def save_pickles(savefilename,*args,**kwargs):
"""
NAME:
save_pickles
PURPOSE:
relatively safely save things to a pickle
INPUT:
savefilename - name of the file to save to; actual save operation will be performed on a temporary file and then that file will be shell mv'ed to savefilename
+things to pickle (as many as you want!)
OUTPUT:
none
HISTORY:
2010-? - Written - Bovy (NYU)
2011-08-23 - generalized and added to galpy.util - Bovy (NYU)
2018-05-04 - Copied from galpy into gaia_tools - Bovy (UofT)
"""
saving= True
interrupted= False