Skip to content

Commit

Permalink
fix: number of generations not asked in interactor
Browse files Browse the repository at this point in the history
- Number of generations not asked in interactor mode
  • Loading branch information
SteffanoP committed May 10, 2022
1 parent 3dcad98 commit dbea3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/setup/interactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def measures_input() -> list:
# Appends every Complexity Measure in measures list
return [cm(measure) for measure in input_Stream]

def generation_input() -> int:
return int(input("Com quantas gerações você deseja otimizar o dataset?\n"))

def __input_with_default__(input_text: str, default_value, data_type: type):
try:
return data_type(input(input_text))
Expand Down
1 change: 1 addition & 0 deletions src/setup/setup_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def setup_interative() -> dict:
# TODO: Extract Measures from the real dataset

options['filename'] = interactor.filename_input()
options['NGEN'] = interactor.generation_input()

# Separating Measures
if measures != None:
Expand Down

0 comments on commit dbea3fd

Please sign in to comment.