Skip to content

Commit

Permalink
Fix double free problem when working with interactive belief explorer (
Browse files Browse the repository at this point in the history
…#185)

* Fixing SAYNT double free problem

* Remove GIL release

* bumped the required Storm version
  • Loading branch information
TheGreatfpmK authored Sep 26, 2024
1 parent 277ca2f commit bc1a2be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
sys.exit('Sorry, Python 2.x is not supported')

# Minimal storm version required
storm_min_version = "1.9.0"
storm_min_version = "1.9.1"

# Get the long description from the README file
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), encoding='utf-8') as f:
Expand Down
1 change: 1 addition & 0 deletions src/pomdp/quantitative_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void define_belief_exploration(py::module& m, std::string const& vtSuffix) {
belmc.def("get_status", &BeliefExplorationPomdpModelChecker<ValueType>::getStatus);
belmc.def("get_interactive_belief_explorer", &BeliefExplorationPomdpModelChecker<ValueType>::getInteractiveBeliefExplorer);
belmc.def("has_converged", &BeliefExplorationPomdpModelChecker<ValueType>::hasConverged);
belmc.def("set_fsc_values", &BeliefExplorationPomdpModelChecker<ValueType>::setFMSchedValueList, py::arg("value_list"));

py::class_<typename storm::builder::BeliefMdpExplorer<Pomdp<ValueType>, ValueType>> belmdpexpl(m, ("BeliefMdpExplorer" + vtSuffix).c_str());
belmdpexpl.def("set_fsc_values", &storm::builder::BeliefMdpExplorer<Pomdp<ValueType>, ValueType>::setFMSchedValueList, py::arg("value_list"));
Expand Down

0 comments on commit bc1a2be

Please sign in to comment.