Coder Social home page Coder Social logo

Comments (8)

jnnr avatar jnnr commented on May 27, 2024

@FelixMau: Can you reproduce this bug?

from oemof-tabular.

jnnr avatar jnnr commented on May 27, 2024

@srhbrnds, could you check this on your machine?

from oemof-tabular.

srhbrnds avatar srhbrnds commented on May 27, 2024

@jnnr I will try to reproduce this bug today. Shall i test on branch fixes/metadata-windows or another?

from oemof-tabular.

srhbrnds avatar srhbrnds commented on May 27, 2024

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.

jnnr avatar jnnr commented on May 27, 2024

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 avatar jnnr commented on May 27, 2024

@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.

srhbrnds avatar srhbrnds commented on May 27, 2024

The problem was caused by a relational path, I managed to resolve it partially. I will push my changes tomorrow.

from oemof-tabular.

jnnr avatar jnnr commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.