On 12/17/2015 06:04 PM, Robert Hanson wrote:
> If I were to be able to read that back into Jmol it would need to be in
> JSON format. You would need to use:
>
> x = format("JSON",parsedData)
> write var x "t.json"
>
> and I am not certain that even then Jmol could read it, but if it could,
> it would be by using
>
> y = eval(load("t.json"))
>
> Maybe you can experiment some, Rolf, and see what particular parsing
> actions lead to this slow down. Could be something that's fixable.
>
Thank you for the hint, Bob.
I have thought about using JSON format but couldn't find a way to read
it in again in the documentation.
And besides I had a lot of trouble with the JSON format in another
project (Javascript->JSON->Perl-CGI->Filesystem->Perl-CGI->Javascript).
So I didn't try to dig deeper into it here.
In Java the import of the small dataset in JSON format does work fine.
The import of the full dataset is still running since several minutes.
So it is much slower there than building the data structure from the TSV
files.
In HTML5 in Firefox 42 on Linux I got the following error message when I
tried to import the small dataset in JSON format:
----- Error Message --------------------------------------
TypeError: b.lineNumbers is null try/catch path:
0 function (b,d)
args[0]=TypeError: b.lineNumbers is null
args[1]=function (){a.instantialize(this,arguments)}
1 JS.ScriptEval.evaluate(a,b,c)
args[0]=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><he...
args[1]=true
args[2]=false
2 JS.ScriptEval.evaluateExpression(a,b,c)
args[0]=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><he...
args[1]=true
args[2]=false
3 JV.Viewer.evaluateExpressionAsVariable(a)
args[0]=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><he...
4 JS.MathExt.evaluateScript(d,a,b)
args[0]=[JS.ScriptMathProcessor object]
args[1]=Token[string(4/0x4) value="<!DOCTYPE HTML PUBLIC "-//IETF//D...
args[2]=134218253
5 JS.MathExt.evaluate(d,a,b,c)
args[0]=[JS.ScriptMathProcessor object]
args[1]=Token[keyword(13/0x800020d) value="eval"]
args[2]=Token[string(4/0x4) value="<!DOCTYPE HTML PUBLIC "-//IETF//D...
args[3]=134218253
6 JS.ScriptMathProcessor.evaluateFunction(a)
args[0]=134218253
7 JS.ScriptMathProcessor.addOpAllowMath(a,b,c)
args[0]=Token[keyword(17/0x10000011) value=")"]
args[1]=true
args[2]=0
8 JS.ScriptMathProcessor.addOp(a)
args[0]=Token[keyword(17/0x10000011) value=")"]
9 JS.ScriptExpr.parameterExpression(a,b,c,e,f,d,h,g,s,n)
args[0]=2
args[1]=9
args[2]=[JS.ScriptMathProcessor object]
args[3]=true
args[4]=0
args[5]=-1
args[6]=1
args[7]=null
args[8]=null
args[9]=false
----------------------------------------------------------
I have added the JSON format files to the ZIP file
(http://jenalib.fli-leibniz.de/ImgLibPDB/tmp/parsed_data-2015_12_17.zip).
Regards,
Rolf
--
Rolf Huehne
Postdoc
Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany
Phone: +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail: [email protected]
Website: http://www.leibniz-fli.de
Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Burkhard Zinner
VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users