Replaced call to Deck::getKeyword(kw, index) with deck[kw][index]

This commit is contained in:
Daniel
2021-11-16 15:47:14 +01:00
committed by Joakim Hove
parent b0f757eb50
commit 90ce7bc6cb
16 changed files with 46 additions and 53 deletions

View File

@@ -24,7 +24,7 @@ namespace {
const DeckKeyword& getKeyword_tuple( const Deck& deck, py::tuple kw_index ) {
const std::string kw = py::cast<const std::string>(kw_index[0]);
const size_t index = py::cast<size_t>(kw_index[1]);
return deck.getKeyword(kw, index);
return deck[kw][index];
}
const DeckKeyword& getKeyword_string( const Deck& deck, const std::string& kw ) {