Skip to content

Commit

Permalink
[pmcx] fix CI error for pmcx
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 22, 2024
1 parent 82fb8f1 commit 70f95ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pmcx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- Copyright: (C) Matin Raayai Ardakani (2022-2023) <raayaiardakani.m at northeastern.edu>, Qianqian Fang (2019-2024) <q.fang at neu.edu>, Fan-Yu Yen (2023-2024) <yen.f at northeastern.edu>
- License: GNU Public License V3 or later
- Version: 0.3.3
- Version: 0.3.4
- URL: https://pypi.org/project/pmcx/
- Github: https://github.com/fangq/mcx

Expand Down
2 changes: 1 addition & 1 deletion pmcx/pmcx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# from .files import loadmc2, loadmch, load, save
from .bench import bench

__version__ = "0.3.3"
__version__ = "0.3.4"

__all__ = (
"gpuinfo",
Expand Down
2 changes: 1 addition & 1 deletion pmcx/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def build_extension(self, ext):
setup(
name="pmcx",
packages=["pmcx"],
version="0.3.3",
version="0.3.4",
requires=["numpy"],
license="GPLv3+",
author="Matin Raayai Ardakani, Qianqian Fang, Fan-Yu Yen",
Expand Down
4 changes: 2 additions & 2 deletions src/pmcx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ void parse_config(const py::dict& user_cfg, Config& mcx_config) {
throw py::value_error("the 'polprop' field must a 2D array");
}

if ((buffer_info.shape.size() > 1 && buffer_info.shape.at(0) > 0 && buffer_info.shape.at(1) != 5) || buffer_info.shape.size() == 1 && buffer_info.shape.at(0) != 5) {
if ((buffer_info.shape.size() > 1 && buffer_info.shape.at(0) > 0 && buffer_info.shape.at(1) != 5) || (buffer_info.shape.size() == 1 && buffer_info.shape.at(0) != 5)) {
throw py::value_error("the 'polprop' field must have 5 columns (mua, radius, rho, n_sph,n_bkg)");
}

Expand Down Expand Up @@ -1007,7 +1007,7 @@ void parse_config(const py::dict& user_cfg, Config& mcx_config) {
auto logfile_id_value = user_cfg["flog"];

if (py::int_::check_(logfile_id_value)) {
auto logid = py::int_(logfile_id_value);
int logid = py::int_(logfile_id_value);
mcx_config.flog = (logid >= 2 ? stderr : (logid == 1 ? stdout : (mcx_config.printnum = -1, stdout)));
} else if (py::str::check_(logfile_id_value)) {
std::string logfile_id_string_value = py::str(logfile_id_value);
Expand Down

0 comments on commit 70f95ba

Please sign in to comment.