EnEff-BIM / EnEffBIM-Framework

translating from BIM to BEPS
MIT License
8 stars 0 forks source link

MoCGF - Issue24 infra #40

Closed jraedler closed 9 years ago

jraedler commented 9 years ago

This request includes several enhancements, it closes #24 and closes #23. Please merge to master after evaluation.

A log and debug system was implemented based on the python logging module. The logger can be used in the data API, the filter functions and (more or less) in the templates. The log can be shown on the command line or in the GUI, the GUI version even captures and shows exceptions.

Access to system configuration values and the generator configuration is available now in the data APIs, the filter functions and the templates. You can even add user-defined configuration values the Package.inf and access these in the subsystems.

An optional user-specific configuration file is read, you can set the generator path and log level here. With this file you don't have to set these options on the command line.

Documentation was updated a little bit.

A new data API and generator example reads JSON files and shows the usage of the logging system. A sample JSON file was added in the new test folder.

thorade commented 9 years ago

When I run the GUI.py I do now get the error: ImportError: No module named 'MoCGF' Do I have to install MoCGF using the setup.py or is this something that has to be fixed?

jraedler commented 9 years ago

GUI.py should not be run directly, it's just part of a module package. Try scripts/MoCGF-gui.py instead.

thorade commented 9 years ago

OK, running scripts/MoCGF-gui.py works and also everything else seems to work as before. Merging & closing