Commit 95d4bbcd authored by Camilla Dodge Koslowsky Harris's avatar Camilla Dodge Koslowsky Harris
Browse files

Fixes a bug where Tecplot loses precision for large numbers, such as Unix epoch time stamps.

parent 00f3d9f1
Pipeline #114503 failed with stage
in 9 seconds
......@@ -197,7 +197,11 @@ def _save_csv(
def _add_variable_value(dataset, variable_name: str, zone, values) -> None:
"""Adds and populates a new variable to a zone in a dataset."""
dataset.add_variable(variable_name)
if variable_name == 'time':
dtype = tecplot.constant.FieldDataType.Double
else:
dtype = None
dataset.add_variable(variable_name, dtypes=dtype)
zone.values(bracketify(variable_name))[:] = values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment