Re: [Quantity-devel] allsymbols sometimes to much
Brought to you by:
berndspeiser
From: <ber...@t-...> - 2004-07-09 08:21:17
|
Kai Ludwig wrote: Kai, > just implemented a combo box for temperature units. > As we discussed yesterday, I check the available units > with the allsymbols() method: > > YK .... well, I can see the problem. There might be several solutions: (1) as you suggested, there could be a `selective' method, e.g. commonsymbols () - but how would one make the selection in a proper way. The selection will probably depend on the application! (2) we have a method, say nonprefixsymbols (), which returns only the `main' units whithout all those having the prefixes attached. This would lead to a loss of information since the prefixes are lost in all cases, even those where one wants to have them attached. (3) the application deals with the selection by displaying only those units, which are deemed important in the present context. I'd suggest solution (3) in the moment. Bernd -- ======================================================================= Bernd Speiser Institut f"ur Organische Chemie Auf der Morgenstelle 18 D-72076 T"ubingen Germany phone: +49-7071-2976205 (office) +49-7071-2976242 (laboratory) fax: +49-7071-295518 e-mail: ber...@un... Internet: http://www.uni-tuebingen.de/speiser ======================================================================= |