Skip to content

Commit

Permalink
chore: updated predictions job to filter directories to extract avail…
Browse files Browse the repository at this point in the history
…able models (#22)
  • Loading branch information
claustres committed Jan 26, 2022
1 parent 77c5978 commit 5d5f770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jobfile-predictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const variable = process.env.VARIABLE || 'HP'
const collection = 'hubeau-observations'
// Read available models
const models = fs.readdirSync(modelsPath)
.filter(model => model.endsWith('.json'))
.map(model => path.basename(model, '.json'))
.filter(model => fs.lstatSync(path.join(modelsPath, model)).isDirectory())

// Create a custom hook to generate tasks
let generateTasks = (options) => {
Expand Down

0 comments on commit 5d5f770

Please sign in to comment.