Giter Club home page Giter Club logo

Comments (4)

aranega avatar aranega commented on June 15, 2024

Hi Mike,

Thanks a lot for your encouragement! As you saw, the implementation is still rough on the edges and the issue you have is a good example of it.
About this, I see two solutions:

  1. modify the generator in order to map EIntegerObject to EInteger (as you propose),
  2. create and add the EIntegerObject into PyEcore directly (in ecore.py).

To be honnest, I'm unable to say which one is the better. The "mapping" in the generator was here to quickly (and badly) managed some types from XMLTypes.ecore withtout embedding/loading the file. So I would tend to say that the second solution seems slightly better as it also introduces a new kind of semantic information (as the choice of EIntegerObject over EInteger or EInt have been made in the metamodel during modeling). What do you think about it?

Anyway, I totally accept PR, they are more than welcome. Also, I would be happy to get any PR you could propose.

Thanks again Mike!
Vince

from pyecore.

moltob avatar moltob commented on June 15, 2024

Thank you for the friendly welcome! You're probably right to better add types directly to ecore.py. I'll look at it and make suggestions via PR. Which branch do you suggest to submit PRs for?

from pyecore.

aranega avatar aranega commented on June 15, 2024

If you could sumbit every PR to the develop branch, it would be perfect, as I need to check first how to properly manage hotfixes with 'gitflow' and how it will react with how 'bumpversion' is used in the project.

Once again, thanks Mike, that's so great to see people interested by this project and who contribute to it!

from pyecore.

aranega avatar aranega commented on June 15, 2024

Again Mike, thanks a lot for your PR. I will make a release to bump from 0.1.4 to 0.1.5 probably today also on pypi (unless you have more PR to do ;) ). I will close the issue in the same time.

from pyecore.

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.