Skip to content

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

@tanushree04

Description

@tanushree04

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions