Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

[WIP] COG 2018 #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP] COG 2018 #63

wants to merge 1 commit into from

Conversation

jdesboeufs
Copy link
Member

Update source datasets.

Not working for now:

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>.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant