Closed dpinney closed 9 years ago
Deferred.
Assigned.
What is the bare-minimum for a new feeder? Going off our simplest feeder, the Simple Market System feeder, I reduced it one house further and am thinking of the following:
Generating the feeder takes the user directly to that screen (slightly zoomed off to the top right of the screen). It seems the zoom to fit button doesn't work, I don't think this is too major so seems it won't be taking the user directly to the view seen in the screenshot.
Minimal feeder is probably just the pink dot (swing node) and the gray disconnected nodes.
Does zoom reset work better than zoom to fit? I agree that zooming for the new feeder is not critical to fix now.
Zoom reset doesn't do it either. This is now working in gridlab multi & will be closed when its committed later tonight.
FUTURE TODO: Fix zoom so it shows something like the above view, and locks on the feeder.
Could you take out the second transformer and meter circled in the below?
Seems I can't, because taking it out crashes the gridlabmulti result. As soon as I put it back in, it works.
I thought it could be from leaving the transformer configuration in there, so I took it out. But that didn't resolve it. Not sure why this is happening.
What is the error message?
MODEL CRASHED GRIDLABMULTI unsupported operand type(s) for /: 'str' and 'int' /home/samsung/Documents/Projects-active/omf/omf/data/Model/admin/SimpleFeeder SimpleFeeder
CANCELED /home/samsung/Documents/Projects-active/omf/omf/data/Model/admin/SimpleFeeder/SimpleFeeder
MODEL CRASHED GRIDLABMULTI local variable 'feederOutput' referenced before assignment /home/samsung/Documents/Projects-active/omf/omf/data/Model/admin/SimpleFeeder
CANCELED /home/samsung/Documents/Projects-active/omf/omf/data/Model/admin/SimpleFeeder
Check the stderr.txt in the model's subfolder. What does that say?
Aha that has pinpointed the error to line 158.
It says: Traceback (most recent call last): File "/home/samsung/Documents/Projects-active/omf/omf/models/gridlabMulti.py", line 158, in runForeground cleanOut['allMeterVoltages']['StdDev'] = hdmAgg([float(i / 2) for i in rawOut['VoltageJiggle.csv']['std(voltage_12.mag)']], avg, level) TypeError: unsupported operand type(s) for /: 'str' and 'int'
Its because of the two types in and str. I will debug this now.
Okay. If you get stuck let me know and I'll share my screen.
Seems its actually because the std column in VoltageJiggle.csv is nan. Shall I debug further?
The file voltagejiggle.csv is generated in gridlabD, when I try a simple try and except pass it'll work but it throws off some of the outputs in the gridlabmulti model. That output looks like this: (the min/max/avg for this reduced feeder are wrong, they are all the same in the chart)
Would you know if there is a minimum feeder size that gridlabD must have in order to run smoothly?
The issue is with the GLD output cleaning code. Just leave the 2nd meter on the model.
Okay that has been done and committed.
I tested this and confirmed it works. Nice job.
TODO
THOUGHTS Currently we only allow Milsoft and GridlabD import for feeder creation. A blank feeder capability would be useful for tests and modeling efforts without Milsoft data.