Skip to content

Revision of STR methods in measures#24

Open
Alegomcab1 wants to merge 3 commits into
masterfrom
alegomcab1/issue21
Open

Revision of STR methods in measures#24
Alegomcab1 wants to merge 3 commits into
masterfrom
alegomcab1/issue21

Conversation

@Alegomcab1

Copy link
Copy Markdown
Contributor

Added new test cases and STR representation for business duration

Added new test cases and STR representation for business duration
@Alegomcab1 Alegomcab1 requested a review from resinas December 22, 2021 17:14
@Alegomcab1 Alegomcab1 self-assigned this Dec 22, 2021
@Alegomcab1 Alegomcab1 linked an issue Dec 22, 2021 that may be closed by this pull request

@resinas resinas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two things that are not supported yet in the generation:

  • It does not work well when the aggregation function is defined using lowercase instead of uppercase. For instance: model.AggregatedMeasure(model.CountMeasure("concept:name=='Appeal to Judge'"), 'avg')
  • It does not work well when the condition is defined as a TimeInstantCondition like: model.CountMeasure(model.TimeInstantCondition(model.RuntimeState.START, model.AppliesTo.ACTIVITY, "Appeal to Judge"))

Comment thread ppinot4py/model/measures.py Outdated
from .conditions import TimeInstantCondition
import datetime
import calendar
import holidays as pyholidays

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this dependency is necessary here. Holidays are provided by the user as a list to BusinessDuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix string generation according to PPINOT templates

2 participants