def __insert_di_act( self, event: Event, row: Series = pandas.Series(), authors: str = "", source_label: str = "", source_location_label: str = "", interpretation_date_text: Optional[str] = None, ): author_label = authors source_label = source_label source_location_label = source_location_label author = authors # Author(self._graph, author_label) if not author: return None source_location = self.__get_source_location(source_label, source_location_label) interpretation_date = interpretation_date_text comment = None if comment: event.add_comment(comment) Di_act( self._graph, event, author, source_location, interpretation_date, )
def __insert_di_act( self, event: Event, row: Series = pandas.Series(), author_label: str = "", source_label: str = "", source_location_label: str = "", interpretation_date_text: Optional[str] = None, ): source_label = row[ Column.source] if Column.source in row else source_label source_location_label = (row[Column.source_location] if Column.source_location in row else source_location_label) source_location = self.__get_source_location(source_label, source_location_label) interpretation_date = (row[Column.interpretation_date] if Column.interpretation_date in row else interpretation_date_text) comment = row[Column.comment] if Column.comment in row else None if comment: event.add_comment(comment) Di_act( self._graph, event, ["Patrick Fiska", "Irene Rabl"], source_location, interpretation_date, )