Skip to content

Commit

Permalink
Merge pull request #305 from NYCPlanning/staging
Browse files Browse the repository at this point in the history
Staging to Develop (PFF Data Updates)
  • Loading branch information
TylerMatteo authored Jul 29, 2024
2 parents b823ba0 + 14b6bf5 commit 9ff9019
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion migrations/acs.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE SCHEMA IF NOT EXISTS acs;
DROP TABLE IF EXISTS acs.:"TABLE_NAME";
DROP TABLE IF EXISTS acs."2021", acs.:"TABLE_NAME";
DROP INDEX IF EXISTS acs.:INDEX_NAME;

CREATE TEMP TABLE tmp (
Expand Down
8 changes: 4 additions & 4 deletions special-calculations/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const PREV_YEAR = 'Y2006-2010'; // TODO: update with actual previous year
const GEOGRAPHY_VERSION = '2023-08-29';
const DECENNIAL_SCHEMA_NAME = 'decennial';
const DECENNIAL_LATEST_TABLE_NAME = '2020';
const DECENNIAL_LATEST_VERSION = '2024-04-16';
const DECENNIAL_LATEST_VERSION = '2024-04-29';
const DECENNIAL_EARLIEST_TABLE_NAME = '2010';
const DECENNIAL_EARLIEST_VERSION = '2024-04-16';
const DECENNIAL_EARLIEST_VERSION = '2024-04-29';
const ACS_SCHEMA_NAME = 'acs';
const ACS_LATEST_TABLE_NAME = '2022';
const ACS_LATEST_VERSION = '2024-04-01';
const ACS_LATEST_VERSION = '2024-04-19';
const ACS_EARLIEST_TABLE_NAME = '2010';
const ACS_EARLIEST_VERSION = '2024-04-01';
const ACS_EARLIEST_VERSION = '2024-04-19';
const ACS_METADATA_FULL_PATH = `"${ACS_SCHEMA_NAME}"."metadata"`;
const ACS_LATEST_TABLE_FULL_PATH = `"${ACS_SCHEMA_NAME}"."${ACS_LATEST_TABLE_NAME}"`;
const ACS_EARLIEST_TABLE_FULL_PATH = `"${ACS_SCHEMA_NAME}"."${ACS_EARLIEST_TABLE_NAME}"`;
Expand Down
2 changes: 1 addition & 1 deletion utils/data-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class DataProcessor {
*/
recalculateIsReliable(row, wasCoded) {
// top- or bottom-coded values are not reliable
if (!row.correlationCoefficient) return;
if (!row.correlationCoefficient && !wasCoded) return;
row.isReliable = wasCoded ? false : executeFormula(this.data, row.variable, 'isReliable');
}
}
Expand Down

0 comments on commit 9ff9019

Please sign in to comment.