Skip to content

Commit

Permalink
no artificial datings after 1832-03-22
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
thvitt committed Oct 21, 2018
1 parent d031fdf commit 08631d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datings.py
Expand Up @@ -199,7 +199,8 @@ def add_to_graph(self, G: nx.MultiDiGraph):
if self.start is not None:
G.add_edge(self.date_before, item, kind=self.start_attr[0], source=source, dating=self, xml=self.xmlsource, ignore=self.ignore, comments=self.comments)
if self.end is None and not self.ignore:
G.add_edge(item, self.date_before + HALF_INTERVAL_CORRECTION, kind='not_after', source=BiblSource('faust://heuristic'), xml=self.xmlsource)
artificial_end = min(self.date_before + HALF_INTERVAL_CORRECTION, datetime.date(1832, 3, 22))
G.add_edge(item, artificial_end, kind='not_after', source=BiblSource('faust://heuristic'), xml=self.xmlsource)
if self.end is not None:
G.add_edge(item, self.date_after, kind=self.end_attr[0], source=source, dating=self, xml=self.xmlsource, ignore=self.ignore, comments=self.comments)
if self.start is None and not self.ignore:
Expand Down

0 comments on commit 08631d5

Please sign in to comment.