Skip to content

Commit

Permalink
Merge branch 'ft-1307-xes-20-importer-variant' into 'integration'
Browse files Browse the repository at this point in the history
FT 1307 XES 2.0 importer variant + Small changes to IEEE export

See merge request pm4py/pm4py-core!509
  • Loading branch information
fit-sebastiaan-van-zelst committed Oct 15, 2021
2 parents 5b85d5d + 0b78818 commit a87a39c
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pm4py/objects/log/exporter/xes/variants/etree_xes_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __export_attributes_element(log_element, xml_element):
if hasattr(log_element, "attributes"):
log_element = log_element.attributes

if isinstance(log_element, list):
if isinstance(log_element, list) or isinstance(log_element, set):
items = log_element
else:
items = log_element.items()
Expand Down
3 changes: 2 additions & 1 deletion pm4py/objects/log/importer/xes/importer.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import pkgutil
from enum import Enum

from pm4py.objects.log.importer.xes.variants import iterparse, line_by_line, iterparse_mem_compressed
from pm4py.objects.log.importer.xes.variants import iterparse, line_by_line, iterparse_mem_compressed, iterparse_20


class Variants(Enum):
ITERPARSE = iterparse
LINE_BY_LINE = line_by_line
ITERPARSE_MEM_COMPRESSED = iterparse_mem_compressed
ITERPARSE_20 = iterparse_20


if pkgutil.find_loader("lxml"):
Expand Down
Loading

0 comments on commit a87a39c

Please sign in to comment.