-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
@@ -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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
Probably not a breaking change: the Case constructor is only called from CaseCollection.
… On 4 Dec 2023, at 09:26, Per Olav Eide Svendsen ***@***.***> wrote:
@perolavsvendsen commented on this pull request.
In src/fmu/sumo/explorer/objects/case.py <#270 (comment)>:
> @@ -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,
Breaking change?
—
Reply to this email directly, view it on GitHub <#270 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIDQOV3M5FUHJSSXZNXQFLYHWCK3AVCNFSM6AAAAABAFRTK72VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONRRHAZDQMRVGE>.
You are receiving this because you authored the thread.
|
“sommaire”?
… or “overview”, which is the term used in #256.
… On 4 Dec 2023, at 09:27, Per Olav Eide Svendsen ***@***.***> wrote:
@perolavsvendsen commented on this pull request.
In src/fmu/sumo/explorer/objects/case.py <#270 (comment)>:
> @@ -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,
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?
—
Reply to this email directly, view it on GitHub <#270 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIDQOQOG4QM3CNUBH2QYPLYHWCOHAVCNFSM6AAAAABAFRTK72VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONRRHAZDSNZWGE>.
You are receiving this because you authored the thread.
|
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:
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Done as part of the
_next_batch
method of class DocumentCollection.