Skip to content

Commit

Permalink
Fix increment=True in write and write_dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusWirtz committed May 14, 2024
1 parent ec7d5c8 commit 75598ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TM1py/Services/CellService.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ def write_values_through_cellset(self, mdx: str, values: Iterable, increment: bo
if increment:
current_values = self.extract_cellset_values(cellset_id, use_compact_json=True, delete_cellset=False,
**kwargs)
values = (x + (y or None) for x, y in zip(values, current_values))
values = (float(x) + float(y or 0) for x, y in zip(values, current_values))

self.update_cellset(cellset_id=cellset_id, values=values, sandbox_name=sandbox_name, **kwargs)
return changeset
Expand Down

0 comments on commit 75598ad

Please sign in to comment.