How to use the pm4py.util.constants.PARAMETER_CONSTANT_ACTIVITY_KEY function in pm4py

To help you get started, we’ve selected a few pm4py examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nirdizati-research / predict-python / src / logs / log_service.py View on Github external
def import_log_csv(path):
    return conversion_factory.apply(
        import_event_stream(path),                           # https://pm4py.fit.fraunhofer.de/documentation/1.2
        parameters={constants.PARAMETER_CONSTANT_CASEID_KEY: "case:concept:name",     # this tells the importer
                    constants.PARAMETER_CONSTANT_ACTIVITY_KEY: "concept:name",        # how to parse the csv
                    constants.PARAMETER_CONSTANT_TIMESTAMP_KEY: "time:timestamp"}     # and which are the caseID
    )                                                                                 # concept name and timestamp