Skip to content

Comments

feat: Add pluralize = True as kwarg to query_object_property#14

Open
kdheepak wants to merge 1 commit intoNatLabRockies:masterfrom
kdheepak:patch-1
Open

feat: Add pluralize = True as kwarg to query_object_property#14
kdheepak wants to merge 1 commit intoNatLabRockies:masterfrom
kdheepak:patch-1

Conversation

@kdheepak
Copy link
Member

@kdheepak kdheepak commented Jul 9, 2025

This PR adds pluralize = True as a kwarg to db.query_object_property

This allows using this function for extracting data from object_classs that don't conform to common pluralization patterns or singular object_classs, e.g. with this PR the following code will work:

db.query_object_property(
    object_class="batteries",
    prop="Generation",
    timescale="year",
    phase="LT",
    pluralize=False,
)

db.query_object_property(
    object_class="power2x",
    prop="Installed Capacity",
    timescale="year",
    phase="LT",
    pluralize=False
)

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.

1 participant