Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate case summaries based on aggregations. #270

Merged
merged 5 commits into from
Dec 4, 2023
Merged

Generate case summaries based on aggregations. #270

merged 5 commits into from
Dec 4, 2023

Conversation

rwiker
Copy link
Contributor

@rwiker rwiker commented Dec 4, 2023

Done as part of the _next_batch method of class DocumentCollection.

@rwiker rwiker requested a review from a team December 4, 2023 08:12
@rwiker rwiker linked an issue Dec 4, 2023 that may be closed by this pull request
@@ -16,8 +16,10 @@
class Case(Document):
"""Class for representing a case in Sumo"""

def __init__(self, sumo: SumoClient, metadata: Dict, pit: Pit = None):
def __init__(self, sumo: SumoClient, metadata: Dict, summary: Dict,
Copy link
Member

Choose a reason for hiding this comment

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

Breaking change?

@@ -16,8 +16,10 @@
class Case(Document):
"""Class for representing a case in Sumo"""

def __init__(self, sumo: SumoClient, metadata: Dict, pit: Pit = None):
def __init__(self, sumo: SumoClient, metadata: Dict, summary: Dict,
Copy link
Member

Choose a reason for hiding this comment

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

The name summary may be confusing, as the term is quite established for some specific data produced by simulators. Other synonyms that can be considered?

@rwiker
Copy link
Contributor Author

rwiker commented Dec 4, 2023 via email

@rwiker
Copy link
Contributor Author

rwiker commented Dec 4, 2023 via email

@perolavsvendsen
Copy link
Member

“sommaire”? … or “overview”, which is the term used in #256.

I think "summary" is the most intuitive one, but I fear that this particular word is broken beyond repair and too closely associated with "summary-data". I believe we have used this term in this context already in the same code base...

The only useful suggestions I could get from ChatGPT were:

  • digest
  • insight
  • rundown

@rwiker
Copy link
Contributor Author

rwiker commented Dec 4, 2023

I think I'll just go for "overview" - it has roughly the same meaning as summary, and is also what was suggested in the issue.

Copy link
Contributor

@equinor-ruaj equinor-ruaj left a comment

Choose a reason for hiding this comment

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

lgtm

@rwiker rwiker merged commit 6a15b11 into main Dec 4, 2023
13 checks passed
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.

Get an overview of cases with metadata for a field
3 participants