Skip to content

Commit

Permalink
remove duplicate and unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Nov 12, 2024
1 parent c0d25c0 commit 808be91
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ class DataHarmonizer {

fillColumn(colname, value) {
const fieldYCoordinates = this.getFieldYCoordinates();
const fields = this.getFields();
// const fields = this.getFields();

// console.log(
// colname,
Expand Down Expand Up @@ -2100,20 +2100,6 @@ class DataHarmonizer {
return map;
}

/**
* Get name of slots given titles via an inverted index
* @param {Array} fields the fields representation for DataHarmonizer
* @return {Dictionary<String, String>}
*/
getFieldTitleMap(fields) {
const columnHeaders = this.hot.getColHeader().map(stripDiv);
let preMap = invert(this.getFieldNameMap(fields));
return Object.keys(preMap).reduce((acc, col_index) => {
acc[columnHeaders[col_index]] = preMap[col_index];
return acc;
}, {});
}

/**
* Modifies exportHeaders map of fields so that each field contains an array
* of one or more source fields by name that are used to compose it.
Expand Down

0 comments on commit 808be91

Please sign in to comment.