Skip to content

Commit

Permalink
accessing flags with getbool now, for right types
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangWaltenberger committed Nov 25, 2024
1 parent a82e80b commit e0ce13d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions smodels/matching/modelTester.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,12 @@ def setExperimentalFeatures(parser):
""" set the experimental features flats, if experimentalFeatures:* = True """
if not parser.has_section ( "experimentalFeatures" ):
return
for feature,flag in dict(parser.items("experimentalFeatures")).items():
for feature in dict(parser.items("experimentalFeatures")).keys():
if not feature in runtime._experimental:
logger.warning ( f"'{feature}' is not a known experimental feature. will ignore." )
continue
runtime._experimental[feature]=bool(flag)
flag = parser.getboolean ( "experimentalFeatures", feature )
runtime._experimental[feature]=flag

def getAllInputFiles(inFile):
"""
Expand Down

0 comments on commit e0ce13d

Please sign in to comment.