[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: CIF-JSON draft 2017-05-15
- Subject: Re: CIF-JSON draft 2017-05-15
- From: Robert Hanson <hansonr@xxxxxxxxxx>
- Date: Fri, 19 May 2017 11:38:51 -0500
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stolaf.edu; s=stolaf;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=XXQpdSGVWgxMPl82PKmsYWtpk62gNEiKrXhSaw2DzMQ=;b=bgcXYyh7a6xJk62QqU55u0WNNVJrnqzfjt2XNmZfxj0nlNlv7+GP26DAdF7maCFcSEHGj1p+AC5OIKeVM484XRYqtlkHZBfzVAgFA4CW6KME69ByCRO8FCdCdY39/SggSmTpQAE+F7/GO978qKR4tan5UkNYACDCARLIfaeD1Ao=
- In-Reply-To: <CACaHzQWQ8aiU-yBE6T-z0B0f6PTWWUVqkm5RfzS+EiBp=GA1iA@mail.gmail.com>
- References: <CAM+dB2cAAY3CjC741WU0GqaWmAi2iGHtwZ82iA1bCwuNoG6nQg@mail.gmail.com><CAF_YUvVa0JXgAN9Bec6fjd6Nmco5W7EHWLN=Ba=daRR9U-2PzQ@mail.gmail.com><CACaHzQVYeOfS9zTe4gDJMVNCTgxtat0zhMAd2EMX=etXj5g2Gw@mail.gmail.com><CAF_YUvWV3huhwoBuCOkKXqCcYH+8kjFCPjoa=j_v61JC4H32Jg@mail.gmail.com><CAF_YUvUMbVz2j5=XXD5WD3G+0XB4tY=r1zwXuADB14qQNZTPvg@mail.gmail.com><CAF_YUvXPj9g6CEnsKmwZwrp7p550nyykrnQY9iN5wpEnDzrrYQ@mail.gmail.com><CAF_YUvUaJM0bwV4vKZwARQw4Q44LN+TOyr4Ghge3P_qn90tUHQ@mail.gmail.com><CAF_YUvUGexW-7iSfJWQ_c=WZNnbzBJeFaNfzKRVK4DKmdydp+A@mail.gmail.com><CAM+dB2dY8xEp8BeSJfXD5E9+H6-qkBCodMV_gc-fetLNp=x_WA@mail.gmail.com><CAF_YUvU+O3yb-JG_zZWvTW0i7EuzA1_J3c0Q8drWqb6rScSkEw@mail.gmail.com><CAF_YUvWT4ZGT_BbpmB2G3Ya7ttzj70qXD7UofyAsPb010W_XJw@mail.gmail.com><CAF_YUvXb4jbKxSh=Q9Q76Zay-RMi8xXU_geQ5FB76cj5iozkOQ@mail.gmail.com><CAF_YUvW01EL98PYcAq0fADvF9BK6oJTdhe4Ju9byg5x5bmGc2Q@mail.gmail.com><CAM+dB2fz+Y45c+Cgk7BABsSPQB2FKe9JxX2j+fRgPC+ehh-ddw@mail.gmail.com><CAF_YUvWnEq0XsQCUhh3bis=vukuf3BQF=QxGi8HS5rTpc4uvkw@mail.gmail.com><CACaHzQUhG8ndiKBSX3OeB=vkn3pu+DugJ=wCEz8podKstFsQZA@mail.gmail.com><CAF_YUvUhv1Li3b-oLkASzq7SnV734WEozPWnMMcHAbVhOcT_Jg@mail.gmail.com><CACaHzQXm3Lti+cP_mQDFnkPdN1ia=--RmGTnPOOyYqP3doJTZw@mail.gmail.com><CAF_YUvXi_UgN9Fc+MATbP-ROKyG31fjcc4HcoS7UEs+2jh3CYA@mail.gmail.com><CAF_YUvXYCLN8gAjDZndba1UCgsgvRTavHKJR28VqAG2Hh4xSVQ@mail.gmail.com><CAM+dB2cjf2EoR3o6MtLHBqRirBzgPSG5iz+eYEK5qtbiMy5Acw@mail.gmail.com><CACaHzQWQ8aiU-yBE6T-z0B0f6PTWWUVqkm5RfzS+EiBp=GA1iA@mail.gmail.com>
On Fri, May 19, 2017 at 4:31 AM, Marcin Wojdyr <wojdyr@gmail.com> wrote:
On 19 May 2017 at 02:37, James Hester <jamesrhester@gmail.com> wrote:
> I had misunderstood Bob's proposal. Yes, I can see the benefit of an outer
> object with a single "CIF-JSON" key.
Do I understand correctly that the only benefit is that the "CIF-JSON"
string will be in the first bytes of the file?
It's still not enough to tell if JMol can handle this file. It may
contain a structure that JMol can show or structure factors that (I
guess) JMol can't show.
And once the JSON is parsed it's equally easy to check for the "CIF-JSON" key.
This isn't particularly an issue. The issue is registering this format relative to other JSON formats that Jmol *can* read.
The downside is one more layer of wrapping.
json["CIF-JSON"].block.item
vs
json.block.item
Yes, that's basically the cost. More that it requires one more object call:
cif = json["CIF-JSON"]
metadata = cif.Metadata
data = cif.["someDataBlockCode"]
...
...
instead of
cif = json
metadata = cif.Metadata
data = cif.["someDataBlockCode"]I suggest it is worth the 14 bytes.
Bob
_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- References:
- CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Prev by Date: Re: CIF-JSON draft 2017-05-15
- Next by Date: CIF-JSON draft 2017-05-22
- Prev by thread: Re: CIF-JSON draft 2017-05-15
- Next by thread: RE: CIF-JSON draft 2017-05-15
- Index(es):