Skip to content

Commit

Permalink
fix: solving minnor issues with prospecror
Browse files Browse the repository at this point in the history
  • Loading branch information
jagalindo committed Aug 22, 2024
1 parent 8b65706 commit 3eb881a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions flamapy/metamodels/fm_metamodel/operations/fm_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def __init__(self) -> None:
@property
def model_type_extension(self) -> str:
return self._model_type_extension

@model_type_extension.setter
def model_type_extension(self, ext: str) -> None:
self._model_type_extension = ext

def get_result(self) -> list[dict[str, Any]]:
return self.result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def variation_points(self) -> dict[Feature, list[Feature]]:


def variation_points(feature_model: FeatureModel) -> dict[Feature, list[Feature]]:
vps: dict[Feature, list[Feature]] = dict()
vps: dict[Feature, list[Feature]] = {}
features = [feature_model.root]
while features:
feature = features.pop()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class VariationPoints(Operation):
"""The variation points of a feature model are those features that require to make a choice
(i.e., select a variant).
This operation returns the variation points and the variants of each variation point.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
'XMLReader',
'GlencoeReader',
'GlencoeWriter',
'ClaferWriter']
'ClaferWriter']
7 changes: 4 additions & 3 deletions flamapy/metamodels/fm_metamodel/transformations/uvl_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ def process_attributes(
logging.warning("This attributes are not yet supported in flama.")
else:
# Handle unexpected case
raise ValueError(
f"Unknown attribute type for: {attribute_context.getText().replace('"', '')}"
)
cleaned_text = attribute_context.getText().replace('"', '')

# Raise the ValueError with the cleaned text
raise ValueError(f"Unknown attribute type for: {cleaned_text}")

attributes_dict[key] = value
return attributes_dict
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flamapy-fw~=2.0.0
flamapy-fw~=2.0.1
uvlparser~=2.0.1
afmparser~=1.0.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def read_requirements(file):

setuptools.setup(
name="flamapy-fm",
version="2.0.0",
version="2.0.1",
author="Flamapy",
author_email="[email protected]",
description="flamapy-fm is a plugin to Flamapy module",
Expand Down

0 comments on commit 3eb881a

Please sign in to comment.