From 90b9787e63e7bcb575f1dd1f5bb0ba399372dd90 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 2 Nov 2018 10:27:18 +0100 Subject: [PATCH] Python: JSON Variant Add support for querying if the JSON backend is compiled. --- src/binding/python/openPMD.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/binding/python/openPMD.cpp b/src/binding/python/openPMD.cpp index 1b0ca941c1..3ae13c5e3a 100644 --- a/src/binding/python/openPMD.cpp +++ b/src/binding/python/openPMD.cpp @@ -86,6 +86,7 @@ PYBIND11_MODULE(openpmd_api, m) { // feature variants m.attr("variants") = std::map{ {"mpi", bool(openPMD_HAVE_MPI)}, + {"json", bool(openPMD_HAVE_JSON)}, {"hdf5", bool(openPMD_HAVE_HDF5)}, {"adios1", bool(openPMD_HAVE_ADIOS1)}, {"adios2", bool(openPMD_HAVE_ADIOS2)}