Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Jan 9, 2024
1 parent 62c7221 commit 069b624
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions parse-datasets/parsers/demand.date-line-stop.parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ const settings = require('../config/settings');

module.exports = async () => {
//
// 1.
// Record the start time to later calculate operation duration

const startTime = process.hrtime();
console.log(`⤷ Parsing datasets/demand/date-line-stop...`);

// 2.
// Read directory from cloned repository
console.log(`⤷ Open directory...`);
const allDirectoryFilenames = fs.readdirSync(`${settings.BASE_DIR}/demand/date-line-stop`, { encoding: 'utf-8' });

// 3.
// Create the different views
//
console.log(`⤷ Parsing "viewByTotalForEachDateForEachStop"...`);
await viewByTotalForEachDateForEachStop(allDirectoryFilenames);

// 4.
//
// console.log(`⤷ Parsing "another view"...`);
// await viewAnother(allDirectoryFilenames);

// Log elapsed time in the current operation
const elapsedTime = timeCalc.getElapsedTime(startTime);
console.log(`⤷ Done updating datasets/demand/date-line-stop (${elapsedTime}).`);
Expand Down

0 comments on commit 069b624

Please sign in to comment.