File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2711,7 +2711,7 @@ void ComputeTariff(EnergyPlusData &state)
2711
2711
2712
2712
Real64 annualAggregate;
2713
2713
2714
- if (!( state.files .outputControl .tabular || state. files . outputControl . sqlite || state. files . outputControl . json )) {
2714
+ if (!state.files .outputControl .writeTabular ( state)) {
2715
2715
state.dataOutRptTab ->WriteTabularFiles = false ;
2716
2716
return ;
2717
2717
}
Original file line number Diff line number Diff line change @@ -319,6 +319,14 @@ std::vector<std::string> InputOutputFile::getLines()
319
319
return std::vector<std::string>();
320
320
}
321
321
322
+ bool IOFiles::OutputControl::writeTabular (EnergyPlusData &state)
323
+ {
324
+ bool const htmlTabular = state.files .outputControl .tabular ;
325
+ bool const jsonTabular = state.files .outputControl .json && state.dataResultsFramework ->resultsFramework ->timeSeriesAndTabularEnabled ();
326
+ bool const sqliteTabular = state.files .outputControl .sqlite ; // && @JasonGlazer thinks something else maybe?
327
+ return (htmlTabular || jsonTabular || sqliteTabular);
328
+ }
329
+
322
330
void IOFiles::OutputControl::getInput (EnergyPlusData &state)
323
331
{
324
332
auto &ip = state.dataInputProcessing ->inputProcessor ;
Original file line number Diff line number Diff line change @@ -673,6 +673,7 @@ public:
673
673
OutputControl () = default ;
674
674
675
675
void getInput (EnergyPlusData &state);
676
+ bool writeTabular (EnergyPlusData &state);
676
677
677
678
bool csv = false ;
678
679
bool mtr = true ;
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ void GetInputTabularMonthly(EnergyPlusData &state)
323
323
// SUBROUTINE LOCAL VARIABLE DECLARATIONS:
324
324
auto &ort = state.dataOutRptTab;
325
325
326
- if (!( state.files.outputControl.tabular || state.files.outputControl.sqlite || state.files.outputControl.json )) {
326
+ if (!state.files.outputControl.writeTabular( state)) {
327
327
ort->WriteTabularFiles = false;
328
328
return;
329
329
}
@@ -1064,7 +1064,7 @@ void GetInputTabularTimeBins(EnergyPlusData &state)
1064
1064
Array1D_int objVarIDs;
1065
1065
auto &ort = state.dataOutRptTab;
1066
1066
1067
- if (!( state.files.outputControl.tabular || state.files.outputControl.sqlite || state.files.outputControl.json )) {
1067
+ if (!state.files.outputControl.writeTabular( state)) {
1068
1068
ort->WriteTabularFiles = false;
1069
1069
return;
1070
1070
}
@@ -1470,7 +1470,7 @@ void GetInputOutputTableSummaryReports(EnergyPlusData &state)
1470
1470
auto &ort = state.dataOutRptTab;
1471
1471
bool ErrorsFound = false;
1472
1472
1473
- if (!( state.files.outputControl.tabular || state.files.outputControl.sqlite || state.files.outputControl.json )) {
1473
+ if (!state.files.outputControl.writeTabular( state)) {
1474
1474
ort->WriteTabularFiles = false;
1475
1475
return;
1476
1476
}
You can’t perform that action at this time.
0 commit comments