Skip to content

Commit

Permalink
efficient Promise for StreamedConverter & it's test
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisTherin committed Apr 7, 2024
1 parent 778689a commit 51320cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const runExamplePipeline = async(): Promise<pl.DataFrame> => {
//( async () => await populationProjection_2019_2024_Ingester.run() )()
( async () => {
const [ logDir, logDL ] = await pjan.run()
//console.log((await pjan.run()).join("\n"))
console.log('dir: '+logDir)
console.log('DL: '+logDL)
})()
1 change: 1 addition & 0 deletions src/ingesters/DecoderLecoGithubDataIngester.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as fs from "node:fs"

/**
* Ingestion des données csv provenant du repsitory Github https://github.com/decoderleco/deces_europe
*
Expand Down
4 changes: 2 additions & 2 deletions src/utils/StreamedConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export interface regexp {
*
* usage:
* const test = new ToCsvConverter(
* '../data_pipeline_tests/data/estat_proj_19np.tsv', // source file input
* './data_pipeline_tests/data/estat_proj_19np.tsv', // source file input
* [
* { from: /\\/, to: ','}, // your every regexp
* { from: /\t/g, to: ','}
* ],
* false // verbose mode
* ).toFile(../data_pipeline_tests/data/estat_proj_19np_csvCleaned.csv) // outputed file
* ).toFile(./data_pipeline_tests/data/estat_proj_19np_csvCleaned.csv) // outputed file
*
*/
export class StreamedConverter {
Expand Down

0 comments on commit 51320cc

Please sign in to comment.