Ah, yes! I see that. Fixed. Standby...
On Thu, May 7, 2015 at 5:16 AM, Rolf Huehne <rhue...@fli-leibniz.de> wrote:
> On 05/07/2015 05:11 AM, Robert Hanson wrote:
> > Jmol.___JmolVersion="14.3.13_2015.05.06"
> >
> > http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.13_2015.05.06.zip
> >
> > new feature: "drilling" in associative arrays for sub arrays with a given
> > property (Rolf Huehne)
> > -- uses "**" as the SELECT option, sort of the way ** sometimes means
> > "subdirectories of"
> > -- returns an associative array or "" if no match
> > -- example:
> >
> > x = [key_1:[type:"a"], key_2:[type:"b"], key_3:[type:"a"], key_4:33]
> > z = getProperty(x, "[SELECT ** WHERE type='a']");
> > show z;
> >
> > z = { "key_1":{ "type":"a" },"key_3":{ "type":"a" } }
> >
> Bob, thank you very much! It works nicely in my first tests.
> I noticed only one oddity: the result type differed depending on the
> number of hits.
>
> If there are several hits you get back a two-dimensional hash.
> If there is only one hit you get back a one-dimensional hash and loose
> the hash key of the hit:
>
> z = getProperty(x, "[SELECT ** WHERE type='b']");
> show z;
>
> z = { "type":"b" }
>
> Regards,
> Rolf
> --
>
> Rolf Huehne
> Postdoc
>
> Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
> Beutenbergstrasse 11
> 07745 Jena, Germany
>
> Phone: +49 3641 65 6205
> Fax: +49 3641 65 6210
> E-Mail: rhue...@fli-leibniz.de
> Website: http://www.fli-leibniz.de
>
> Scientific Director: Prof. Dr. K. Lenhard Rudolph
> Head of Administration: Dr. Daniele Barthel
> Chairman of Board of Trustees: Dennys Klein
>
> VAT No: DE 153 925 464
> Register of Associations: No. 230296, Amtsgericht Jena
> Tax Number: 162/141/08228
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users