External Python IDE Compatiblitiy

I currently have a Python IDE and plan to write simulations for Breve, can I expect any difficulties with the python interface classes?

I noticed some of the code requires breve hooks to specific breve objects, since these calls are not built into Python, what suggestions could anyone offer to use an external IDE?

You can use a Python IDE to

You can use a Python IDE to develop your simulation, but you will need to run the simulation using the breve executable. The breve runtime cannot be loaded into a Python process -- it works the other way around.

Depending on the IDE, there may be hooks for launching the code with an external program, but I'm not familiar with any specific Python IDEs.

- jon

Re: Python Module

How long could you estimate building a breve python module including all class instances, without actual functions?

If for instance I am interfacing with the vector class, It looks like I am going to have to write an import pyBreve that defines a vector according to Breve's specs, then switch over to the import breve in python to run the simulation.

It shouldn't be that complicated, and at least I get portable code, using python.

If you could offer any alternative suggestions, please let me know.

Thanks,

Firefly

P.S. I would have to take a look, if you are interpreting Python in Breve, is the breve python module in source? I am thinking it's an internal adaptor class that patches the breve code into the script editor, using a bridge pattern or multiple class interfaces that encapsulates the breve library.

Re: Breve as Presentation Layer

When it comes down to it, Breve is great for its graphics, and built-in physical modeling. Now with some thought on the topic, numerical modeling and data mining say identifying new planets in the known universe requires the aid of a specialized program. Breve is good for small world toy models, or as a 3D rendering pipeline. I think building any foundation code should be done in python and carefully applied to Breve as a presentation layer.

Honestly we can write some very interesting simulations. When it comes to managing large data sets I use a database, not breve. If someone ever writes a pyBreve module to test breve code in thirty plus class files, then I can justify the time coding directly in breve, or any other solution that improves the project.

A bug tracking system (e.g. web app) could significantly improve the project, from a user's perspective. I found six to eight inconsistencies with the documentation, with an organized system for tracking known issues we wouldn't have to ask the same questions. This take a lot of the guesswork out of coding simulations. And this keeps inquiring about known or unknown system issues, on the polite side, rather than sounding critical or judgmental.

An objective without a result is only half an objective. — D. Hammer

If you've found problems in

If you've found problems in the documentation, don't keep them a secret! Please send them to me so that I can fix them.

- jon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.