From 564f3cb09f41fb37f9b2811674a9ca4286147d7f Mon Sep 17 00:00:00 2001 From: Robert Underwood Date: Sun, 17 Jan 2021 22:09:43 -0500 Subject: [PATCH] libpressio version 0.55.2 Bug Fix + higher level python bindings now accept numpy ndarrays as arguments --- CMakeLists.txt | 2 +- COPYRIGHT.txt | 2 +- swig/libpressio.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56be9d3..c54a2ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) -project(libpressio VERSION "0.55.1" LANGUAGES CXX C) +project(libpressio VERSION "0.55.2" LANGUAGES CXX C) #correct was to set a default build type # https://blog.kitware.com/cmake-and-the-default-build-type/ diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index 76bf7ce..2663a0e 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -1,6 +1,6 @@ Copyright © 2021 , UChicago Argonne, LLC All Rights Reserved -[libpressio, Version 0.55.1] +[libpressio, Version 0.55.2] Robert Underwood Argonne National Laboratory diff --git a/swig/libpressio.py b/swig/libpressio.py index 7ea5711..17ac350 100644 --- a/swig/libpressio.py +++ b/swig/libpressio.py @@ -65,7 +65,7 @@ def _compute_path(path, key): def to_libpressio(x): op = None if isinstance(value, np.ndarray): - value_lp = pressio.io_data_to_numpy(value) + value_lp = pressio.io_data_from_numpy(value) op = pressio.option_new_data(value_lp) pressio.data_free(value_lp) elif isinstance(value, list):