Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplification and unification of source code: evolve conditionally and collect data? #194

Open
Datseris opened this issue Jan 24, 2020 · 0 comments
Labels
code clarity Will improve code clarity decision We must decide if and how should this be done hard

Comments

@Datseris
Copy link
Member

Datseris commented Jan 24, 2020

I have an idea that I believe will be able to unify all functionality currently present in e.g. evolve, visited_obstacles!, escape_time and similar (timeseries is excluded probably due to its interpolating nature). We could have a single function evolve or whatever its called that evolves until a condition is met: this condition could be total amount of time, total amount of collisions, reaching a specific obstacle, whatever. You name it! it can be specified via a single function.

Then, one more other argument would specify what kind of data should be collected. I wonder how easy this really is to do, but my argument would be that you would specify what kind of data to "collect". The huge difficulty here is the "kind of data" vastly differs: from integers (e.g. which obstacles you visited), to floats (how long you evolved for), to tuples of svectors (position and velocity at collision).

But maybe we can provide some "self-made" functions for data collection.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Datseris Datseris added code clarity Will improve code clarity decision We must decide if and how should this be done hard labels Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code clarity Will improve code clarity decision We must decide if and how should this be done hard
Projects
None yet
Development

No branches or pull requests

1 participant