allpy
changeset 659:720c15589a90
add test for blocks3d/www
Run
cd blocks3d/www
make
python test.py > test.html
and open test.html in browser
README and Makefile of blocks3d/www were updated
author | boris <bnagaev@gmail.com> |
---|---|
date | Wed, 29 Jun 2011 11:55:16 +0400 |
parents | 1c2f88eedb18 |
children | b5a5f46a48a7 |
files | blocks3d/www/Makefile blocks3d/www/README blocks3d/www/test.py |
diffstat | 3 files changed, 13 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/blocks3d/www/Makefile Mon Jun 27 13:42:42 2011 +0400 1.2 +++ b/blocks3d/www/Makefile Wed Jun 29 11:55:16 2011 +0400 1.3 @@ -2,4 +2,5 @@ 1.4 build: 1.5 python ../../sequence_based_blocks_search/functional_groups_to_javascript.py > input/conservative_groups.js 1.6 r2w 1.7 + python test.py > output/test.html 1.8
2.1 --- a/blocks3d/www/README Mon Jun 27 13:42:42 2011 +0400 2.2 +++ b/blocks3d/www/README Wed Jun 29 11:55:16 2011 +0400 2.3 @@ -4,8 +4,10 @@ 2.4 * libjs-jquery 2.5 2.6 build template file: 2.7 - cd www 2.8 - mkdir output 2.9 - r2w 2.10 + make 2.11 output file is build to output/index.html 2.12 2.13 +build test.html 2.14 + python test.py > test.html 2.15 +and open test.html in browser 2.16 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/blocks3d/www/test.py Wed Jun 29 11:55:16 2011 +0400 3.3 @@ -0,0 +1,7 @@ 3.4 + 3.5 +print open('output/index.html').read().replace('self_js_text', """ 3.6 +blocks = [{"start": 2, "end": 29, "IDs": ["B", "A"]}, 3.7 + {"start": 32, "end": 42, "IDs": ["B", "A"]}]; 3.8 +fasta_dict = {"A": "SNAKIDQLSSDVQTLNAKVDQLSNDVNAARSDAQAAKDDAARANQRLDNM", 3.9 + "B": "SNAKIDQLSSDAQTANAKADQASNDANAARSDAQAAKDDAARANQRLDNM"}; """) 3.10 +