drpaulbrewer / single-market-robot-simulator Goto Github PK
View Code? Open in Web Editor NEWRuns numerical experiments for a single market populated by robot traders
License: Other
Runs numerical experiments for a single market populated by robot traders
License: Other
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.
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!
Lines 741-745 and 835-1316 of this test report
https://travis-ci.org/DrPaulBrewer/single-market-robot-simulator/builds/548964578
An example:
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
+11at 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:
To be determined:
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
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.
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!
#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)
browser-stdout
to v1.3.1 (@honzajavorek)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
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
These files have caseid
label in the header row but empty column in the data rows:
buyorderlog.csv
sellorderlog.csv
reject*csv
Although the agent type if set in config
and these setting seem well tested, it would aid in data
analysis and future testing to have the agent type available in order log and trade log files.
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.
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.
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.
Morphing code's floating pointing interpolation does not guarantee integers: 13.9999999998
Proposed solution is to apply Math.round()
in each of these statements.
single-market-robot-simulator/src/index.js
Lines 235 to 236 in 33ae967
2.1.0
to 2.3.0
.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.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
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. esdoc may need a plugin.
manual doc push at esdoc website is failing.
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'
}
The notes at the end only cite the paper in JEBO.
The data in brief paper is open access and also gives pointers to data and replication details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.