Skip to content

Commit

Permalink
Fix Scan.get_property key type. (#734)
Browse files Browse the repository at this point in the history
* Fix Scan.get_property key type for usage from c++.
  • Loading branch information
toastisme authored May 7, 2024
1 parent 2732092 commit 3e875f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/734.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `Scan.get_property` key type.
3 changes: 2 additions & 1 deletion src/dxtbx/model/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ namespace dxtbx { namespace model {
}

template <typename T>
scitbx::af::shared<T> get_property(const typename T::key_type &key) const {
scitbx::af::shared<T> get_property(
const typename flex_table<scan_property_types>::key_type &key) const {
DXTBX_ASSERT(properties_.contains(key));
return properties_.get<T>(key);
}
Expand Down

0 comments on commit 3e875f0

Please sign in to comment.