Skip to content

Commit ad27de1

Browse files
committed
CI fixes
1 parent fee09f5 commit ad27de1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/2_read_serial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
print("Read a Series with openPMD standard version %s" %
1515
series.openPMD)
1616

17-
print("The Series contains {0} iterations:".format(len(series.snapshots())))
17+
print("The Series contains {0} iterations:".format(
18+
len(series.snapshots())))
1819
for i in series.snapshots():
1920
print("\t {0}".format(i))
2021
print("")

src/binding/python/Series.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,10 @@ not possible once it has been closed.
404404
std::tuple<py::object, std::string>,
405405
std::tuple<py::object, py::object>
406406
#endif
407-
>::template call(cl);
407+
>::template call<py::class_<Series, Attributable> &>(cl);
408+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
409+
// need to explicitly state template parameters, otherwise Clang on
410+
// Windows does not understand that it really is a template
408411

409412
cl.def("__bool__", &Series::operator bool)
410413
.def("__len__", [](Series const &s) { return s.iterations.size(); })

0 commit comments

Comments
 (0)