Giter Club home page Giter Club logo

Comments (5)

michaelbynum avatar michaelbynum commented on May 27, 2024

@saramille What versions of WNTR and Pandas are you using? Do you get a similar error with the WNTRSimulator (as opposed to the EpanetSimulator)?

from wntr.

kaklise avatar kaklise commented on May 27, 2024

After talking to @saramille, it appears that the simulation does not run to completion in WNTR or in the EPANET GUI. This issue was resolved by modifying the damping limit in the INP file. We will try to replicate this error in WNTR and generate a better error message.

from wntr.

saramille avatar saramille commented on May 27, 2024

I installed the recent version of Anaconda distribution with all the python packages uptodate. I don't recall the version of pandas right now but both WNTR and EPANET simulators were giving me the same errors-- the running time on WNTR is a bit longer.

As Kate mentioned, what worked for me was increasing the damping effect from 0 (default value) to 0.1. This might relate to accuracy of the iterations...with larger values being less accurate.

from wntr.

kalebsm avatar kalebsm commented on May 27, 2024

I am currently getting a similar ValueError as described above. I do not have a damping limit in my INP file, and would probably prefer to keep the damping effect at its default. Is there any other reason why I might be getting this error? Here is my Traceback:

File … \Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File …\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File …pds_LbLcode.py", line 572, in
pressure_output = run_pressure_simulations(wn_copy, 27, 1, 3, process_id_num)

File …pds_LbLcode.py", line 47, in run_pressure_simulations
results = epanet_sim.run_sim(file_prefix = "process_temp" + str(process_number))

File …\Anaconda3\lib\site-packages\wntr\sim\epanet.py", line 98, in run_sim
return self.reader.read(outfile)

File …\Anaconda3\lib\site-packages\wntr\epanet\io.py", line 2792, in read
df = pd.DataFrame(data.transpose(), index =index, columns = reporttimes)

File …\Anaconda3\lib\site-packages\pandas\core\frame.py", line 440, in init
mgr = init_ndarray(data, index, columns, dtype=dtype, copy=copy)

File …\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 213, in init_ndarray
return create_block_manager_from_blocks(block_values, [columns, index])

File …\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1688, in create_block_manager_from_blocks
construction_error(tot_items, blocks[0].shape[1:], axes, e)

File …\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1719, in construction_error
"Shape of passed values is {0}, indices imply {1}".format(passed, implied)

ValueError: Shape of passed values is (565279, 1), indices imply (31404, 25)

from wntr.

kalebsm avatar kalebsm commented on May 27, 2024

Since this is a similar question to the one already closed, I wasn't sure whether or not to create a new issue or attach to this one, so I will wait a day and then create a new issue if I don't hear anything.

from wntr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.