add method to load ccd widths file

Former-commit-id: bdbf98e1d2
pull/1161/head
edgarriba 2015-11-18 16:39:03 +00:00
rodzic 237ec8a5d3
commit dee7cd625d
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -1,4 +1,11 @@
import json
import datetime
import context
def get_ccd_widths():
"""Return the CCD Width of the camera listed in the JSON defs file."""
with open(context.ccd_widths_path) as jsonFile:
return json.load(jsonFile)
def run(cmd):
"""Run a system command"""