diff --git a/Complexity.py b/Complexity.py index dca004af..a61be42d 100644 --- a/Complexity.py +++ b/Complexity.py @@ -57,10 +57,13 @@ def GetMacCabeMetric(path): L = [getattr(cls,fct) for fct in ('extTransition','intTransition','outputFnc') if hasattr(cls, fct)] + print(L) + source_list = list(map(inspect.getsource, L)) L_args = [] + complexity = 0.0 for text in source_list: ### textwrap for deleting the indentation diff --git a/README.md b/README.md index 100da0d8..2b85c217 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ All dependencies can be installed using pip with the requirements.txt file: $ pip install -r requirements.txt ``` -An XUbuntu 19.10 virtual machine including DEVSimPy can be donwloaded from [DEVSimPy-on-XUbuntu19.10.ova](https://mycore.core-cloud.net/index.php/s/D9JDrN62E0MUCPq/download). The login and password of the distribution (root) are: devsimpy-user/devsimpy. If you want to have the latest version of DEVSimPy, please execute 'git pull' in the DEVSimPy directory before starting or start DEVSimPy by double clicking on the desktop icon and go to Help->Update->From Git Repository (pull). +An XUbuntu 19.10 virtual machine including DEVSimPy can be donwloaded from [DEVSimPy-on-XUbuntu19.10.ova](https://mycore.core-cloud.net/index.php/s/o8T8mAzmuuHDokh). The login and password of the distribution (root) are: devsimpy-user/devsimpy. If you want to have the latest version of DEVSimPy, please execute 'git pull' in the DEVSimPy directory before starting or start DEVSimPy by double clicking on the desktop icon and go to Help->Update->From Git Repository (pull). # Usage To execute DEVSimPy: