1.4.0
Highlights
New create
, get
and delete
methods in ApplicationService
with TM1Service(address=ADDRESS, port=PORT, user=USER, password=PASSWORD, ssl=SSL) as tm1:
app = CubeApplication(path="Planning Sample", name="Sample Application", cube_name="Bike Shares")
tm1.applications.create(application=app, private=False)
with TM1Service(address=ADDRESS, port=PORT, user=USER, password=PASSWORD, ssl=SSL) as tm1:
with open(path_to_file, 'rb') as file:
app = DocumentApplication(path="Planning Sample", name="Sample Application", content=file.read())
tm1.applications.create(application=app, private=False)
New Features
- New
create
,get
,delete
methods for applications execute_view_dataframe
,execute_mdx_dataframe
methods now expose all arguments
from thepd.read_csv
methods (e.g.dtypes
,parse_dates
) #143
More details on the arguments here:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html- Add new method
remove_all_edges
toHierarchyService
to unwind hierarchy efficiently - New
get_element_identifiers
methods that returns all element names and alias values in aset
- Add
get_last_data_update
method toCubeService
#177 - Add
load
andunload
methods toCubeService
#163 - Add
check_rules
method toCubeService
Bug Fixes
- Fix issue in chore
update
method #133 and #134 - Fix handling of
Sandboxes
dimension when writing to cube #136 - Fix return of
extract_cellset_rows_and_values
method when MDX creates empty cellset #135 - Escape single quotes in all object names in odata references #145
- Undo silent type conversion in values column. Type of Value column in resulting dataframe from
execute_mdx_dataframe
,execute_view_dataframe
is derived from data, unless specified otherwise throughdtype
argument.
Compatibility Notes
ApplicationService
has been redesigned and is not backwards compatible.
Acknowledgments
Big thanks to @tombrzy , @ducklingasa , @rclapp , @pbuncik for contributing code to this release and many others for reporting bugs and requesting features.
How to upgrade TM1py
To upgrade TM1py, just use the following command:
pip install TM1py --upgrade