Skip to content
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

Python Library error in reading output from .mat file #673

Open
tanushree04 opened this issue Oct 28, 2024 · 0 comments
Open

Python Library error in reading output from .mat file #673

tanushree04 opened this issue Oct 28, 2024 · 0 comments

Comments

@tanushree04
Copy link
Collaborator

tanushree04 commented Oct 28, 2024

Expected Behavior

A .csv with results is created on running uo_des des-process commands.

Actual Behavior

des-process command for .mat file (~7 GB in size) with yearly simulation for 13 building and 3 GHX leads to an error.

The following library leads to an error when reading the .mat file:

https://simulationresearch.lbl.gov/modelica/buildingspy/
https://github.com/urbanopt/geojson-modelica-translator/blob/develop/geojson_modelica_translator/results_ghp.py#L38

raise ValueError("Not enough bytes to read matrix '%s'; is this "
181 "a badly-formed file? Consider listing matrices "
182 "with whosmat and loading named matrices with "
183 "variable_names kwarg to loadmat" % hdr.name)

ValueError: read length must be non-negative or -1

its because Python's scipy.io.loadmat library is having trouble reading the .mat file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant