NatLabRockies / NatLabRockies/EnergyPlus

SQL 'Time' table: 'Interval' is empty when reporting frequency is 'Annual'

Open
#7,939 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.6k
Forks
490
Avg merge
6d 21h
Merged PRs (30d)
22

Description

Issue overview

Time: "Interval" is empty when reporting frequency is "Annual"

This is 1ZoneUncontrolled, with slight modifications to add the sqlite output and a bunch of output variables (cf https://github.com/NREL/OpenStudio/tree/develop/resources/utilities/SqlFile)

SELECT ReportDataIndex, TimeIndex, ReportDataDictionaryIndex, Value, Month, Day, Hour, Minute, Interval, Name, ReportingFrequency From ReportVariableWithTime
WHERE ReportingFrequency = "Annual" OR ReportingFrequency = "Run Period"
AND Name="Zone Mean Air Temperature"

image

This isn't new, but still it the case up to 9.3.0 official. It goes back to 8.9.0 (where Annual was added/differentiated from Run Period or something like that)

Details

Some additional details for this issue (if relevant):

  • Platform (Operating system, version): All
  • Version of EnergyPlus (if using an intermediate build, include SHA): 9.3.0
Checklist

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the defect file DefectFiles/7000s/7939/1ZoneEvapCooler-V9-3-0.idf and reproduce the provided ReportVariableWithTime query against the SQLite output. Trace how Annual and Run Period records populate the Time table's Interval field, using the 1ZoneUncontrolled modifications and SqlFile resources as context. Done means Annual records report the expected Interval value without regressing Run Period output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sqlite
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.