-
Notifications
You must be signed in to change notification settings - Fork 13
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
Reference Discussion #2
Comments
Yes starting from python instead of ipython works. We should see if there is some way to allow starting from ipython too, since that it is default for many users, but it is not a priority for now. As I was now able to start the app, I had a look at it, and I have to say its really great what you already did in this short time! The interactive interpreter is a very cool feature. I also like the way you integrated the documentation into the popups in the network builder. If you can integrate the plotting functions I created into the network builder tab, we have a good first version. The collection functions that are made are still a rough draft. The longer the distance between the two buses, the larger the transformer rings are plottet. The size of the buses is also hard coded right now. There should probably be some kind of scaling depending on the window size. I also started to make a load symbol collection to plot loads, will push as soon as they are ready. |
Thank you. It was a cold and rainy weekend in Johannesburg. You will see now that to add for example an external grid I used a table. I think this would make it faster and easier to create dialogues for it. Also just want to focus on loading and saving real cases for now. |
To be honest I think the table is a little confusing, I liked the first solution better #edit: impedance, ward, xward, dcline are not that commonly used, especially not in distributions systems. measurement is only used for state estimation. Maybe better concentrate on the most important elements first and leave those elements out in the first version? |
Thanks, I agree. Will keep to the original way. will prioritise as proposed. |
I have added the collections builder. you can select the bus and click on the canvas. IT then opens the creatae bus dialog. It doesn't always update the black dot. The issue is that the dialog is non-blocking and the refdraw happens before the item has been set. if you click a couple or slow click it will show the dot. the transformer is the same as the line. the transformer at my side dos not draw circles. will study collections tonight. PS - i added your code in my file for now as it didn't want to run. I am getting the hang of this slowly :) |
I think we now have all the basic elements to make this work! |
Yes, I agree! There is still a lot to do obviously, but the basic building blocks are all there. I changed the trafo symbol function so the size of the transformer rings can be set. I also added a function to plot load symbols (create_load_symbol_collection), but not yet integrated it into the GUI. As for the version, I would suggest to always use the newest develop version of pandapower, because keeping up with 1.3 / develop compatibility will mount up. Once a first version of the GUI is released, we will release a new pandapower version anyway. |
OK, I will freeze all for now, and ensure that everything runs from latest version before i move on. |
@lthurner could you please help me out with the workflow. If i want to make changes etc. what should the steps be. Do a pull, make changes, test and commit since you can make changes now |
yes exactly, always pull before starting to make changes, to make sure you are editing the newest version, and always push as soon as possible to have as little divergence in the parallel versions |
ok, i am checking the changes you made. should we decide what i can focus on. I think let me get the open and save working for now. and then I will changes the build dialogs to a) look like yours with the docs in a seperate window and that it closes apon itself after an ok is clicked? |
Yes I thought it would be cleaner to have the documentation in an extra tab, especially for elements with more parameters (e.g transformers). I tried to model the behaviour like I know it from PowerFactory or Sincal: having the same window for creating and editing the element. For now I only changed the bus window, before other windows are also changed I would like to have a discussion / an agreement about what is the best way to model it. What do you think? |
yes lets get the bus window sorted and then we tackle the rest. |
I meant what do you think about the bus window layout? Do you agree with the changes I made, do you have further comments/changes to propose? |
hi. i agree with the changes. i like the layout regarding the dummy net. should we not start with a blank net and remove the dummy net. there is some drawing issues if the net is empty also if a bus for example is created by a bus click and not on the canvas can we assign a geodata tuple lets say somewhere top left so it can be drawn? also if a net is imported without geodata or any net for that matter how do we decide to draw or igonre drawing. maybe turn collections drawing off via a radio button? for the work i do if i can draw |
the canvas button pres is currently set on a click and not a click and release. this make panning, zooming difficult. if the button_release_event is used then the click event can be used to move a object around. if you click on a collection and the mouse has not been released, keep ons updating at intervals the geodata and redraw? |
yes we can start with an empty net and then maybe provide an example net that can be loaded. I think the drawing should detect if all buses have geodata and otherwise don't draw. Something like: if len(net.bus_geodata) == 0 or len(set(net.bus.index)) - set(net.bus_geodata.index)) > 0:
I assumed we would just allow creating by clicking. Why would someone have to create a bus without clicking on the canvas? Also for other elements, if someone wants to create a load without clicking on the bus, they would have to know the index of the bus - but how does one know that in the GUI? Isn't it exactly the point of the gui that things are visual instead of based on indices?
Yes you are right, the event should be on release and not on press |
yes those are the most important, i would add sgen and maybe gen |
The reference discussion for this project can be found at
The PandaPower Project
The text was updated successfully, but these errors were encountered: