Closed unndreay closed 4 years ago
https://github.com/modex-flexmex/oemo-flex/pull/20/commits/d878c7f43ab65679c98582dd944eaebf6fa35f91 addresses the issue that we cannot move the functions unless we have made everything a parameter, see https://github.com/modex-flexmex/oemo-flex/issues/14#issuecomment-606065434 (the objected-oriented solution proposed here was postponed)
Renaming what becomes the preprocessing module for the sake of being in line with the names of the processing steps.
After talking, we decided to
update_
functions, the input data can then be merged on the 'region' column.create_default_elements_files
function.For link
elements, the merging function remains to be further adjusted.
Tried to leave changes as minimal as possible for the link_list
by doing some replacement only for the new column:
https://github.com/modex-flexmex/oemo-flex/blob/c02b645d2fa951a1c821f3233e2cdb2f211cedfb/oemoflex/preprocessing.py#L141-L143
This leaves the postprocessing untouched as far as possible.
Changing the link_list itself to the new format (AT_DE
) would have entailed much more changes.
Added suffixes and their processing – probably looks better with DataFrame operations
I do not understand why travis checks do not appear in this PR. Here I post the results of the last build with some failures for the linters: https://travis-ci.org/github/modex-flexmex/oemo-flex/builds/669838469?utm_medium=notification&utm_source=github_status
Hey @unndreay, thanks for your effort! This looks good. I left some comments and questions that we should address. After that, this seems ready to merge.
Implementing issue https://github.com/modex-flexmex/oemo-flex/issues/14
Additionally, a the result comparison similar to https://github.com/modex-flexmex/oemo-flex/issues/13 needs to be fixed before in order to go safe when refactoring.