Giter VIP home page Giter VIP logo

single-market-robot-simulator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

single-market-robot-simulator's Issues

buyer/seller Agent Types are shortened to "t" in trade.csv and other logs

For example, in the buyerAgentType column of the output file "trade.csv", I expected "ZIAgent".

This appears properly on cloud simulation, but in web-based simulation the type recorded is "t".

This is also confirmed by examining memory-based logs in a fresh simulation in chrome dev tools.

Logo proposal

Hi good day @DrPaulBrewer
I am a graphic designer and I would like to contribute with the project
I can offer a logo that represents the project.
You can receive the logo without any commitment.
I want to contribute because I like to do it.
Thanks for your time.

Cheers!

test runs with optional "real-time" flag enabled are failing intermittently

Lines 741-745 and 835-1316 of this test report

https://travis-ci.org/DrPaulBrewer/single-market-robot-simulator/builds/548964578

An example:

  1. simulation with single unit trade, value [1000], costs [1]
    runSimulation with three simulations of 10 periods of single unit trade scenario, asynchronous, realtime 1.5 sec period
    when done should pass same tests as above
    the trade log should have 11 entries, the header row plus 10 trades, exactly 1 trade per period:
    AssertionError: expected 10 to be 11

    • expected - actual
      -10
      +11

    at Assertion.fail (node_modules/should/cjs/should.js:275:17)
    at Assertion.value (node_modules/should/cjs/should.js:356:19)
    at Context.equal (test/index.js:937:45)
    at processImmediate (internal/timers.js:439:21)

Known:

  • Running the tests repeatedly, over and over, this will fail in approximately 5-10% of runs.
  • This is not something that normally executes during a simulation.
  • It is only applicable for "real-time" simulations that are run on a delay and with reference to actual time
    • example: humans could compete with robots over the web on a hypothetical system not yet built
  • Currently I have never actually finished and deployed this for any kind of research data production.

To be determined:

  • Could this be simply timing related?
  • Delays in executing tasks pushed to the internal JavaScript event loop could be difficult to find/debug.
  • Does it go away if we increase the length of periods to 30 sec or 1 minute?
  • since it is not being used -- remove it?

An in-range update of mocha is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 5.0.2 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 5.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
  • coverage/coveralls First build on greenkeeper/mocha-5.0.2 at 97.531% Details

Release Notes v5.0.2

5.0.2 / 2018-03-05

This release fixes a class of tests which report as false positives. Certain tests will now break, though they would have previously been reported as passing. Details below. Sorry for the inconvenience!

🐛 Fixes

  • #3226: Do not swallow errors that are thrown asynchronously from passing tests (@boneskull). Example:

    it('should actually fail, sorry!', function (done) {
      // passing assertion
      assert(true === true);
    

    // test complete & is marked as passing
    done();

    // ...but something evil lurks within
    setTimeout(() => {
    throw new Error('chaos!');
    }, 100);
    });

    Previously to this version, Mocha would have silently swallowed the chaos! exception, and you wouldn't know. Well, now you know. Mocha cannot recover from this gracefully, so it will exit with a nonzero code.

    Maintainers of external reporters: If a test of this class is encountered, the Runner instance will emit the end event twice; you may need to change your reporter to use runner.once('end') intead of runner.on('end').

  • #3093: Fix stack trace reformatting problem (@outsideris)

:nut_and_bolt Other

Commits

The new version differs by 13 commits.

  • f2ee53c Release v5.0.2
  • ff1bd9e update package-lock.json
  • 6a796cb prepare CHANGELOG for v5.0.2 [ci skip]
  • 0542c40 update README.md; closes #3191 [ci skip]
  • afcd08f add MAINTAINERS.md to .fossaignore [ci skip]
  • 3792bef add opencollective header image to assets/
  • 5078fc5 persist paths in stack trace which have cwd as infix
  • 2c720a3 do not eat exceptions thrown asynchronously from passed tests; closes #3226
  • 3537061 Update to correctly licensed browser-stdout version
  • ec8901a remove unused functionality in utils module
  • f71f347 rename wallaby.js -> .wallaby.js
  • c4ef568 fix PR url
  • 73d55ac fix typos in changelog [ci skip]

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

explicitly test KaplanSniper sniping of extreme priced opportunities

A test within the single-market-robot-simulator test suite seems worthwhile.

The snipers are already tested in market-agents, but this didn't catch a mis-match in column names
that unintentionally blocked the previous period highPrice/lowPrice information from the snipers.

quote log needed

As a prerequisite to knowing if certain strategies are behaving correctly, we need to know
the existing market quotes the moment before the agent acts in the market.

Currently, there is no way to obtain this information other than replaying the market data.

Bad configurations can throw "TypeError: Cannot read property 'length' of undefined"

I noticed this error on the econ1.net website after I managed to accidentally remove buyerAgentType and sellerAgentType arrays and then tried to run a study that didn't have these required settings.

Notice that this issue has to do with array-valued properties (because .length is implicated).

What I would like it to do: The console error message should explain which required variables are missing

What it did instead: Told me that it couldn't read the length of an undefined variable, without telling me which variable is undefined.

This doesn't impact normal, correct operations.

An in-range update of simple-isomorphic-logger is breaking the build 🚨

The dependency simple-isomorphic-logger was updated from 2.1.0 to 2.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

simple-isomorphic-logger is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

immediate deadline test fails intermittently

One of the minor tests, described as

deadline: run Simulation sync:true with immediate deadline, request 10 periods of single unit trade scenario only yields one period'

fails intermittently.

The specific part of the test that fails is

it("sim.config.periods should be reduced to 1 period", function () {
S.config.periods.should.equal(1);
});

Example

     AssertionError: expected 2 to be 1
      + expected - actual

      -2
      +1
      
      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.equal (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/index.js:1019:31)

update esdoc

update esdoc. esdoc may need a plugin.

manual doc push at esdoc website is failing.

6.9.0 throws TypeError in stand-alone mode while writing out period number

Error messages looked like this in Docker container

/work $ node ~/single-market-robot-simulator/build/index.js sim.json
internal/fs/utils.js:657
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (1)
    at Object.writeFileSync (fs.js:1380:5)
    at mainPeriod (/home/node/single-market-robot-simulator/build/index.js:763:8)
    at Simulation.run (/home/node/single-market-robot-simulator/build/index.js:720:9)
    at main (/home/node/single-market-robot-simulator/build/index.js:767:26)
    at Object.<anonymous> (/home/node/single-market-robot-simulator/build/index.js:775:43)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
  code: 'ERR_INVALID_ARG_TYPE'
}

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.