Code Monkey home page Code Monkey logo

Comments (6)

jakobkolb avatar jakobkolb commented on May 28, 2024

I don't quite understand. Didn't we call the instances of these classes (Cells, Society etc.) entities and this these lists are exactly what their name suggests - the entities that inherited from the respective class?

from pycopancore.

tillkolster avatar tillkolster commented on May 28, 2024

The problem is the following: When calling the runner and letting it perform, it needs to iterate through all instances of a given class. This is done by:

for entity in oc.entities:

This is working and everything is fine until you have a process taxon, which does not have entities. So we just added the entities list to the process taxa as well, just to make it work. But: This is confusing, because now process taxa have a list that is called entities and we iterate through it (it only has one instatance included). So now, we are looking for a better naming, since objects or something like this is not very descriptive

from pycopancore.

sduslu avatar sduslu commented on May 28, 2024

In the variable class in the private package there is the set_values function. This function also uses entities as input, but entities may also contain process taxa. This is not good. Apparently it is the same naming problem.

from pycopancore.

timkittel avatar timkittel commented on May 28, 2024

For the problem @tillkolster mentioned: Why not simply give process and attribute entities that is an empty list? That would solve the problem.

from pycopancore.

tillkolster avatar tillkolster commented on May 28, 2024

This problem is not about having a problem in the code so it doesn't work, but the naming. It does work, but we don't like to use names that don't fit...

from pycopancore.

tillkolster avatar tillkolster commented on May 28, 2024

now changing to item in instances

from pycopancore.

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.