datetime patch
This commit is contained in:
parent
25c296be6f
commit
a77feab830
@ -7,6 +7,12 @@ import glob
|
|||||||
import datetime as dt
|
import datetime as dt
|
||||||
import subprocess
|
import subprocess
|
||||||
from IPython import embed
|
from IPython import embed
|
||||||
|
try:
|
||||||
|
iso = dt.date.fromisoformat
|
||||||
|
except AttributeError:
|
||||||
|
from backports.datetime_fromisoformat import MonkeyPatch
|
||||||
|
MonkeyPatch.patch_fromisoformat()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def read_info_file(file_name):
|
def read_info_file(file_name):
|
||||||
|
2
setup.py
2
setup.py
@ -8,5 +8,5 @@ setup(name='fishbook',
|
|||||||
packages=find_packages(exclude=['contrib', 'doc', 'tests*']),
|
packages=find_packages(exclude=['contrib', 'doc', 'tests*']),
|
||||||
description='Database providing an overview of the electrophysiological data recorded in the group.',
|
description='Database providing an overview of the electrophysiological data recorded in the group.',
|
||||||
author='Jan Grewe',
|
author='Jan Grewe',
|
||||||
requires=['datajoint', 'nixio', 'numpy', 'PyYAML']
|
requires=['datajoint', 'nixio', 'numpy', 'PyYAML', 'backports-datetime-fromisoformat']
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user