Skip to content

Commit

Permalink
libpressio version 0.55.2
Browse files Browse the repository at this point in the history
Bug Fix

+ higher level python bindings now accept numpy ndarrays as arguments
  • Loading branch information
robertu94 committed Jan 18, 2021
1 parent bedc555 commit 564f3cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion swig/libpressio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 564f3cb

Please sign in to comment.