Skip to content

Commit

Permalink
WIP: Upgrade libE57Format
Browse files Browse the repository at this point in the history
  • Loading branch information
dancergraham committed Feb 6, 2024
1 parent 6e39966 commit 407b6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pye57/e57.py
Expand Up @@ -103,7 +103,7 @@ def write_default_header(self):
self.root.set("e57LibraryVersion", libe57.StringNode(imf, libe57.E57_LIBRARY_ID))
self.root.set("coordinateMetadata", libe57.StringNode(imf, ""))
creation_date_time = libe57.StructureNode(imf)
creation_date_time.set("dateTimeValue", libe57.FloatNode(imf, 0.0))
creation_date_time.set("dateTimeValue", libe57.FloatNode(imf, 10.0))
creation_date_time.set("isAtomicClockReferenced", libe57.IntegerNode(imf, 0))
self.root.set("creationDateTime", creation_date_time)
self.root.set("data3D", libe57.VectorNode(imf, True))
Expand Down
2 changes: 1 addition & 1 deletion src/pye57/libe57_wrapper.cpp
Expand Up @@ -380,7 +380,7 @@ PYBIND11_MODULE(libe57, m) {
});

py::class_<FloatNode> cls_FloatNode(m, "FloatNode");
cls_FloatNode.def(py::init<e57::ImageFile, double, FloatPrecision, double, double>(), "destImageFile"_a, "value"_a=0.0, "precision"_a=E57_DOUBLE, "minimum"_a=DBL_MIN, "maximum"_a=DBL_MAX);
cls_FloatNode.def(py::init<e57::ImageFile, double, FloatPrecision, double, double>(), "destImageFile"_a, "value"_a=0.0, "precision"_a=E57_DOUBLE, "minimum"_a=-DBL_MAX, "maximum"_a=DBL_MAX);
cls_FloatNode.def("value", &FloatNode::value);
cls_FloatNode.def("precision", &FloatNode::precision);
cls_FloatNode.def("minimum", &FloatNode::minimum);
Expand Down

0 comments on commit 407b6dd

Please sign in to comment.