GithubHelp home page GithubHelp logo

Scoring is undefined about igc-xc-score HOT 3 CLOSED

mmomtchev avatar mmomtchev commented on June 1, 2024
Scoring is undefined

from igc-xc-score.

Comments (3)

mmomtchev avatar mmomtchev commented on June 1, 2024

I just tried it and it works for me, can you try to delete your node_modules and then reinstall with npm i

from igc-xc-score.

Djang0 avatar Djang0 commented on June 1, 2024

No better luck :(

lr@Air-de-Ludovic IFly % npm i

> [email protected] install /Users/lr/Documents/code/IFly/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
[sqlite3] Success: "/Users/lr/Documents/code/IFly/node_modules/sqlite3/lib/binding/napi-v3-darwin-x64/node_sqlite3.node" is installed via remote
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

added 144 packages from 182 contributors and audited 144 packages in 5.236s

2 packages are looking for funding
  run `npm fund` for details

found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
lr@Air-de-Ludovic IFly % node index.js
[GeneratorFunction (anonymous)]
Connected to the logFly database.
found 226 flights in LogFly. Now processing...
 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | ETA: 0s | 0/226/Users/lr/Documents/code/IFly/index.js:139
      var result_ffvl = solver(score_flight, scoring.FFVL).next().value;
                                                     ^

TypeError: Cannot read property 'FFVL' of undefined
    at /Users/lr/Documents/code/IFly/index.js:139:54
    at Array.forEach (<anonymous>)
    at processFlights (/Users/lr/Documents/code/IFly/index.js:112:8)
    at Statement.<anonymous> (/Users/lr/Documents/code/IFly/index.js:434:5)
    at Statement.replacement (/Users/lr/Documents/code/IFly/node_modules/sqlite3/lib/trace.js:25:27)
lr@Air-de-Ludovic IFly % 

Node version ?

lr@Air-de-Ludovic IFly % node --version
v14.17.3

from igc-xc-score.

Djang0 avatar Djang0 commented on June 1, 2024

@mmomtchev renaming scoring to scoringRules did the trick. thanks.

from igc-xc-score.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.