Skip to content

Conversation

@MariusWirtz
Copy link
Collaborator

Allows this:

    month_dimension = tm1.dimensions.get(dimension_name="month")
    with open("raw/month.json", "w") as file:
        file.write(month_dimension.body)


    with open("raw/month.json") as file:
        month_dimension = Dimension.from_json(file.read())
    month_dimension.name = "NUK month"
    tm1.dimensions.update_or_create(month_dimension)

@MariusWirtz MariusWirtz merged commit 97dd5d2 into master Mar 17, 2022
@MariusWirtz MariusWirtz deleted the issue/simply-dimension-from-json-file-creation branch April 9, 2023 18:15
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.

2 participants