Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

fix: error in the operations of dead, and false optional #22

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions flamapy/interfaces/python/FLAMAFeatureModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ def dead_features(self):
try:
self._transform_to_sat()
features = self.dm.use_operation(self.sat_model,'Glucose3DeadFeatures').get_result()
dead_features = []
for feature in features:
dead_features.append(feature.name)
return dead_features
return features
except:
return False

Expand All @@ -223,7 +220,6 @@ def error_detection(self):
operation.feature_model=self.fm_model
operation.execute(self.sat_model)
result = operation.get_result()

return result
except:
return False
Expand All @@ -241,11 +237,7 @@ def false_optional_features(self):
operation.feature_model=self.fm_model
operation.execute(self.sat_model)
features = operation.get_result()

false_optional_features = []
for feature in features:
false_optional_features.append(feature.name)
return false_optional_features
return features
except:
return False

Expand Down
Loading