[UNMAINTAINED] Historic information for French regions, counties, overseas collectivities and towns based on INSEE and Wikipedia data, exported as (re)usable CSV files.
Record(depcom='44225', mod=331, eff=datetime.datetime(2018, 1, 1, 0, 0), nccoff='Freigné', nccanc='', comech='44180', dep='44', com='225', depanc='', last=None, effdate=datetime.date(2018, 1, 1))
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/jerome/etalab/geohisto/geohisto/__main__.py", line 66, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click_log/core.py", line 94, in wrapper
return f(*args, **kwargs)
File "/Users/jerome/etalab/geohisto/geohisto/__main__.py", line 34, in main
compute(towns, history_list)
File "/Users/jerome/etalab/geohisto/geohisto/actions.py", line 397, in compute
raise e
File "/Users/jerome/etalab/geohisto/geohisto/actions.py", line 394, in compute
ACTIONS.get(record.mod, lambda a, b: a)(towns, record)
File "/Users/jerome/etalab/geohisto/geohisto/actions.py", line 196, in deletion
modification=record.mod
File "/Users/jerome/etalab/geohisto/geohisto/models.py", line 216, in generate
raise Exception(msg)
Exception: You cannot set 2018-01-01 00:00:00 as a start date and 2017-12-31 23:59:59.999999 as an end date for Town <Town (fr:commune:44225@2018-01-01): Freigné from 2018-01-01 to 2018-01-01 with successors and mod 0>.
Update source datasets.
Not working for now: