Tag: hack

TM1 File Tools - scratching an itch

January 27, 2023 · 2 min read
Over the years, I'd built up a number of scripts and hacks for carrying out various tasks. Having often worked in pretty locked down environments, my only recourse was often batch files, vb script or powershell. I don't enjoy working in any of those so as opportunities to use Python have increased, I started creating a common library for use on projects.

Autogenerate TM1py convenience functions for reading data

October 8, 2022 · 5 min read
I'm currently building a testing and validation framework using python for a very old and quirky TM1 model. TM1py provides all the functionality you need to pull data from a cell but I found myself writing wrappers for specific cubes to make this a bit easier. Rather than writing them all by hand, I hacked together this little script to autogenerate the code so I thought I'd share it in case someone else had a similar need.