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

Issue/75 #76

Merged
merged 2 commits into from Dec 3, 2018
Merged

Issue/75 #76

merged 2 commits into from Dec 3, 2018

Conversation

MariusWirtz
Copy link
Collaborator

Fix Issue 75

get TM1 config-parameters with get_active_configuration or get_static_configuration function
update dynamic config parameters through update_static_configuration

Sample:

from TM1py import TM1Service

with TM1Service(address='10.77.19.60', port=12354, user='admin', password='apple', ssl=True) as tm1:
    config = {
        "Performance": {
            "MTQ": {
                "NumberOfThreadsToUse": 7,
                "MTFeeders": False
            }
        }
    }
    # effectively update the .cfg file (and triggers TM1 to re-read the file)
    tm1.server.update_static_configuration(config)
    # ask TM1 Server about the currently applied config parameters
    config = tm1.server.get_active_configuration()

    print(config["Performance"]["MTQ"]["NumberOfThreadsToUse"])

- New execute_* functions to extract (pandas) pivot tables from a cube view or mdx query: execute_view_dataframe_pivot and execute_mdx_dataframe_pivot
- Minor test improvements
- New mdx parser to extract dimension-composition from mdx query
- New delete_cellset argument in tidy_cellset function allows to overrule default behaviour regarding the deletion of cellsets in the extract_cellset_* functions
@vviau vviau merged commit 0a4fec0 into cubewise-code:master Dec 3, 2018
@vviau vviau added this to the v1.2.0 milestone Dec 4, 2018
@MariusWirtz MariusWirtz deleted the issue/75 branch February 2, 2019 22:25
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.

None yet

2 participants