Compare commits

...

7 Commits

Author SHA1 Message Date
Alexander Rose
2bd846a94b 0.2.2 2019-06-05 11:36:50 -07:00
Alexander Rose
1b74fba2e5 no postinstall build 2019-06-05 11:36:08 -07:00
Alexander Rose
1eadac9c2e add MolArt reference to readme 2019-06-05 10:03:11 -07:00
Alexander Rose
6bc9963c09 0.2.1 2019-06-05 09:44:45 -07:00
Alexander Rose
3f622f6c12 Merge branch 'master' of https://github.com/molstar/molstar 2019-06-05 09:44:23 -07:00
Alexander Rose
dacc6a9cb1 Merge pull request #16 from JonStargaryen/quant
fixes upper bound in interval quantization encoding
2019-06-04 19:24:06 -07:00
Sebastian Bittrich
a6d700b732 fixes upper bound in interval quantization encoding 2019-06-04 18:00:00 -07:00
4 changed files with 6 additions and 6 deletions

View File

@@ -9,6 +9,8 @@ The goal of **Mol\*** (*/'mol-star/*) is to provide a technology stack that will
This particular project is the implementation of this technology (still under development).
*If you are looking for the "MOLeculAR structure annoTator", that package is now available on NPM as [MolArt](https://www.npmjs.com/package/molart).*
## Project Overview
The core of Mol* currently consists of these modules (see under `src/`):
@@ -61,8 +63,7 @@ This project builds on experience from previous solutions:
DEBUG=molstar npm run watch
### Build for production:
npm run build
NODE_ENV=production npm run build-webpack
NODE_ENV=production npm run build
**Run**

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "molstar",
"version": "0.2.0",
"version": "0.2.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "molstar",
"version": "0.2.0",
"version": "0.2.2",
"description": "A comprehensive macromolecular library.",
"homepage": "https://github.com/molstar/molstar#readme",
"repository": {
@@ -23,7 +23,6 @@
"watch-webpack": "webpack -w --mode development --display minimal",
"model-server": "node lib/servers/model/server.js",
"model-server-watch": "nodemon --watch lib lib/servers/model/server.js",
"postinstall": "npm run build",
"preversion": "npm run test",
"postversion": "git push && git push --tags",
"prepublishOnly": "npm run test && npm run build"

View File

@@ -172,7 +172,7 @@ export namespace ArrayEncoding {
for (let i = 0, n = data.length; i < n; i++) {
const v = data[i];
if (v <= min) output[i] = 0;
else if (v >= max) output[i] = numSteps;
else if (v >= max) output[i] = numSteps - 1;
else output[i] = (Math.round((v - min) / delta)) | 0;
}