FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GA.run_completed attribute initializer missing · Issue #122 · ahmedfgad/GeneticAlgorithmPython · GitHub

GA.run_completed attribute initializer missing #122

Description

I can't check ga_instance.run_completed == False during runtime because ga_instance.run_completed is initialized to True only after a finished run. It was never initialized to False inside of class GA. This line is missing from pygad.py I suppose (lines 911 - 941):

self.run_completed = False

Workaround for now in example.py:

ga_instance = pygad.GA(
  # [...]
)

ga_instance.run_completed = False

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL