Fix costs retrieval if a historical planning year is used. Code adapted from @ktehranchi's suggestion. Also remove a pdb import to fix pre-commit issues.
Checklist
[x] I tested my contribution locally and it seems to work fine.
[x] Code and workflow changes are sufficiently documented.
[x] Changed dependencies are added to envs/environment.yaml.
[x] Changes in configuration options are added in all of config.default.yaml.
[x] Changes in configuration options are also documented in doc/configtables/*.csv.
Changes proposed in this Pull Request
Fix costs retrieval if a historical planning year is used. Code adapted from @ktehranchi's suggestion. Also remove a pdb import to fix pre-commit issues.
Checklist
envs/environment.yaml
.config.default.yaml
.doc/configtables/*.csv
.