Add datetime support to configfile

This commit is contained in:
Luke Campagnola 2017-11-01 16:57:45 -07:00
parent 22b0ddaa21
commit e16948dbeb
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ file format. Data structures may be nested and contain any data type as long
as it can be converted to/from a string using repr and eval.
"""
import re, os, sys
import re, os, sys, datetime
import numpy
from .pgcollections import OrderedDict
from . import units
@ -143,6 +143,7 @@ def parseString(lines, start=0):
local['Point'] = Point
local['QtCore'] = QtCore
local['ColorMap'] = ColorMap
local['datetime'] = datetime
# Needed for reconstructing numpy arrays
local['array'] = numpy.array
for dtype in ['int8', 'uint8',