Comments (8)
@FelixMau: Can you reproduce this bug?
from oemof-tabular.
@srhbrnds, could you check this on your machine?
from oemof-tabular.
@jnnr I will try to reproduce this bug today. Shall i test on branch fixes/metadata-windows or another?
from oemof-tabular.
I tried to rerun the example on branch fixes/metadata-windows
and receive the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'foreign_keys.json'
It traces back to the config.py
line 12
with open(FOREIGN_KEYS_FILE, "r") as fk_file:
FOREIGN_KEYS = json.load(fk_file)
Since the file foreign_keys.json
exits in /src/oemof/tabular/config/ I assume the path is still the problem. I debugged the config.py and I don't receive the problem. I receive this output after running line 12 ff.
[FOREIGN_KEYS: {'bus': ['volatile', 'dispatchable', 'storage', 'load', 'reservoir', 'shortage', 'excess'], 'profile': ['load', 'volatile', 'ror'], 'from_to_bus': ['connection', 'line', 'conversion'], 'chp': ['backpressure', 'extraction', 'chp']}]
Do you have any idea on why the porblem occurs when running the script but not in debugger mode @jnnr ?
from oemof-tabular.
Do you have any idea on why the porblem occurs when running the script but not in debugger mode @jnnr ?
Maybe you are on different environments when you debug and when you run the script? Just guessing.
from oemof-tabular.
@jnnr I will try to reproduce this bug today. Shall i test on branch fixes/metadata-windows or another?
Thanks! fixes/metadata-windows is quite old and might not include all necessary changes. Could make sense to start a fresh branch to fix the problem - however you like!
from oemof-tabular.
The problem was caused by a relational path, I managed to resolve it partially. I will push my changes tomorrow.
from oemof-tabular.
After a discussion, we found out: Actually, we do not want to have os-dependent metadata. The standard is unix-style separators (https://specs.frictionlessdata.io/data-resource/#data-location). Therefore, infer_metadata
should give /
as separator on any os.
Next, we can check if datapackages created like this can be run on any os.
from oemof-tabular.
Related Issues (20)
- Missing constraint test for heatpump
- Include EV-component
- Add multi-period to deserialization
- False parameters in examples
- Add multi-period parameters to deserialization
- Reading.py Improvement suggestions for Maintainability HOT 2
- Only one profile for efficiency possible HOT 3
- pytest tests/test_multi_period_constraints.py not working HOT 3
- Update to solph v0.5.1
- Update Changelog
- Patch release v.0.0.4
- Continuous dependency conflict with datapackage==1.5.1 HOT 1
- Remove relicts and duplicates
- Add TSAM config to datapackage
- Add tests for BEV-component
- Clean empty lines in csv before reading HOT 1
- tools/postprocessing.py content needed in oemoflex HOT 6
- Adapt multi-period investment tests for BEV facades
- Add dev install version
- Rename `custom_attributes` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oemof-tabular.