diff options
author | Yader Velásquez <yajosev@gmail.com> | 2010-08-29 21:41:21 (GMT) |
---|---|---|
committer | Yader Velásquez <yajosev@gmail.com> | 2010-08-29 21:41:21 (GMT) |
commit | 6e85f242904e121d08d6b00d7bbbe31587fc861b (patch) | |
tree | c504c5c229de7c07f637d3bc8bf69802b7cf5382 /archivo.py | |
parent | bd82e5868a9893344a34fb7354fada82ea3ebc00 (diff) |
new function in archivo.py to open an ephemeris file
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,12 @@ def crear_modelo(): modelo.append([1, 'Hola Mundo']) return modelo +def abrir_efemeride(): + '''open the ephemeris file and return a dictionary''' + archivo = open('files/efemerides.pkl', 'rb') + texto = pickle.load(archivo) + return texto + def guardar_dato(indice, contenido, archivo): '''get a id dependig of the unix time, and the content''' indice = str(indice) |