From 3e5460c2e63ff02dc06e4faf95a81d773325e57b Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Thu, 3 Aug 2023 18:38:17 -0400 Subject: [PATCH] fix travis pmcx build error --- pymcx | 2 +- src/pmcx.cpp | 4 ++-- src/pybind11 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pymcx b/pymcx index e957869b..c5c841d0 160000 --- a/pymcx +++ b/pymcx @@ -1 +1 @@ -Subproject commit e957869b5761d76e12a8e7e665171946828c2469 +Subproject commit c5c841d02e1252c83f88c73337d6c870bb8b668c diff --git a/src/pmcx.cpp b/src/pmcx.cpp index cd9f84aa..2f3f5931 100644 --- a/src/pmcx.cpp +++ b/src/pmcx.cpp @@ -1037,8 +1037,8 @@ py::dict pmcx_interface(const py::dict& user_cfg) { auto dref_array = py::array_t(array_dims); if (mcx_config.issaveref) { - int highdim = fielddim[3] * fielddim[4] * fielddim[5]; - int voxellen = cfg.dim.x * cfg.dim.y * cfg.dim.z; + int highdim = field_dim[3] * field_dim[4] * field_dim[5]; + int voxellen = mcx_config.dim.x * mcx_config.dim.y * mcx_config.dim.z; auto* dref = static_cast(dref_array.mutable_data()); memcpy(dref, mcx_config.exportfield, field_len * sizeof(float)); diff --git a/src/pybind11 b/src/pybind11 index 2d59b43c..a8b3ff30 160000 --- a/src/pybind11 +++ b/src/pybind11 @@ -1 +1 @@ -Subproject commit 2d59b43cbf8793119fb92726ce8eb33441469e3e +Subproject commit a8b3ff30f9649459021adc80f98a945d3ac675a5