tm1py icon indicating copy to clipboard operation
tm1py copied to clipboard

Added support for trace calculations, trace feeders, and check feeders

Open rclapp opened this issue 2 years ago • 2 comments

New methods for calculation tracing.

rclapp avatar Aug 09 '22 21:08 rclapp

https://github.com/cubewise-code/tm1py/issues/779

rclapp avatar Aug 10 '22 02:08 rclapp

Thanks for the contribution! I will review and merge in the next few days

MariusWirtz avatar Aug 12 '22 10:08 MariusWirtz

@rclapp I am not sure if the trace_cell_feeders function works. for me it returns an empty response from a cell that is fed.

Am I missing something? Can you please share a working sample?

from TM1py import TM1Service

with TM1Service(address='localhost', port=12354, ssl=True, user="admin", password="apple") as tm1:
    cell_trace = tm1.cells.trace_cell_feeders(cube_name="c1", elements="e1,e1")
    print(cell_trace)

    something = tm1.cells.check_cell_feeders(cube_name="c1", elements="e1,e1")
    print(something)
{'@odata.context': '../$metadata#ibm.tm1.api.v1.FeederTrace', 'FedCells': [], 'Statements': []}
{'@odata.context': '../$metadata#Collection(ibm.tm1.api.v1.FedCellDescriptor)', 'value': []}
image

MariusWirtz avatar Aug 20 '22 19:08 MariusWirtz

I am opening a case with IBM about it.

From: Marius Wirtz @.> Reply-To: cubewise-code/tm1py @.> Date: Saturday, August 20, 2022 at 3:42 PM To: cubewise-code/tm1py @.> Cc: "Clapp, Ryan" @.>, Mention @.***> Subject: Re: [cubewise-code/tm1py] Added support for trace calculations, trace feeders, and check feeders (PR #780)

@rclapphttps://github.com/rclapp I am not sure if the trace_cell_feeders function works. for me it returns an empty response from a cell that is fed.

Am I missing something? Can you please share a working sample?

from TM1py import TM1Service

with TM1Service(address='localhost', port=12354, ssl=True, user="admin", password="apple") as tm1:

cell_trace = tm1.cells.trace_cell_feeders(cube_name="c1", elements="e1,e1")

print(cell_trace)



something = tm1.cells.check_cell_feeders(cube_name="c1", elements="e1,e1")

print(something)

@.***': '../$metadata#ibm.tm1.api.v1.FeederTrace', 'FedCells': [], 'Statements': []}

@.***': '../$metadata#Collection(ibm.tm1.api.v1.FedCellDescriptor)', 'value': []}

[Image removed by sender. image]https://user-images.githubusercontent.com/15182131/185763595-05b4fe14-5438-4249-8bce-eb49cbcef5a9.png

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/pull/780#issuecomment-1221394508, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZXQOP5AT2C73ZSGJV3V2EYGHANCNFSM56CGPHQA. You are receiving this because you were mentioned.Message ID: @.***>

rclapp avatar Aug 22 '22 13:08 rclapp

Figured out the issue. The URL that I used did not work in all versions (not sure why). I did a trace of what PAW does and now the method uses that URL instead. New pull request was created.

rclapp avatar Aug 24 '22 19:08 rclapp