-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add inp save function #47
Comments
I propose that the first task is to port the code in Uexport.pas in the GUI source folder (GUI5_1_012) to C/C++ or directly to python (this would be even easier). What do you think? |
Yes Python easier, but not the definitive solution. It should be C or C++ for it to be useful |
Then lets make it C++ (you mean useful for the future multilanguage API based on SWIG?) As I am just getting tinto the community. Is there a coding style guideline? |
Useful for anyone wanting to use whatever other language they see fit, be it python or ruby or whatever. And yes useful also for using SWIG. |
@kakila Uexport.pas is one example and EPANET inputfile.c is another. |
@michaeltryby thanks, I am not familiar with inputs to EPANET. Is there any major differences between inp for EPANEt and inp for SWMM? If there isn't then the work is reduced to refactoring inputfile.c |
inputfile.c and uexport.pass could become either
I mean just to be consistent with the naming (actions that are reflective) |
@goanpeca is there a coding style guideline? where would you place this file? what is the naming convention? |
I have no idea :-p, @michaeltryby is our man here |
Lew's style. :-) |
Right now all files are just dumped together, maybe we could add some structure to the source files?
|
@kakila EPANET and SWMM input files are organized the same way using tagged file sections. It might be useful to study up on the input file format in preparation for your project. |
before we do:
let me do some re-orging. I've got a couple of pull requests hang around and I want to bring them in first. |
Lew's style uses functional abstraction as the primary organizing principal, clearly named functions and variables, copying his coding idioms and idiosyncrasies, a comment header for every function, peppering the source code with helpful comments. We need to establish and enforce a coding standard. |
In Octave we use http://wiki.octave.org/C%2B%2B_style_guide after 10+ years of using it I must admit it is very readable and it does provide a speed up when browsing code. For python many of the styles not need apply, e.g. function calls and array accessing is already differentiated. |
For reference I opened #48 |
Is there an editable wiki in this project or should I just add information about the EPANET and SWMM input files here? |
Yep the wiki is editable by people with write access.. :-p |
@goanpeca I meant that "I can edit". I guess I will have to use these comments. |
.inp file sections
In seems the files are not subsets of each other. I will focus on SWMM (more sections) hoping that the sections with the same are are the same (same parametrization and meaning). [*] as given in inpfile.c |
I am able to pitch in and help with this effort. |
@DJHostetler, awesome! Well this contribution can start from our develop branch. |
The SWMM list is missing the LID sections and Events, and there are a few characters missing from some of the SWMM section names |
@DJHostetler Great to have you aboard! |
Avoid compiler warnings
No description provided.
The text was updated successfully, but these errors were encountered: