Hi, Chuck I'm not understanding what you are asking. I gather you want to use an expression like
$f($x, $y, $z). in a Cheetah template, where f() is your model, and x, y, and z are parameters? If so, what's to stop you from simply using $x, $y, and $z in the template? Or, something else? On Tue, Dec 8, 2020 at 9:46 AM Chuck Rhode <crh...@lacusveris.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I've been toying with an xtypes extension to model insect and crop > development. > > I have 200 temperature development models for over 100 species. I > don't want to calculate all but a handful of current interest. The > trouble is that I want to pass not only the calculated series but also > the parameter values for the chosen models to Cheetah for printing as > part of each report, but I can't see how. > > Parameter values are two or three, but names and stages of development > can be two or three more. > > I can duplicate walking the configobj dictionaries in both places (in > my xtypes module and my Cheetah template) to gather the necessary > info, but that seems inelegant. > > Are there user-extensible structures in common between xtype engines > and report engines that I can exploit to pass a dictionary of > dictionaries of static values? Is there some stunt I can pull, > extending the Cheetah search_list or the config_dict as a side-effect > of instantiating my xtypes? > > P. S.: I've resigned myself to writing my own image engine so, if I > can conquer the Cheetah beast, I should be able to build on that > experience. > > - -- > .. Be Seeing You, > .. Chuck Rhode, Sheboygan, WI, USA > .. Weather: http://LacusVeris.com/WX > .. 36° — Wind WSW 13 mph > > -----BEGIN PGP SIGNATURE----- > > iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCX8+6xAAKCRBg2/xipKOW > UplRAJ90K9IqTbFCRoJ5oUOktb7U9cQ84wCfRflLahZFpTksyGkwG16F3ybsC00= > =j7sB > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/20201208114123.1e43e5b6%40wealthy > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDzj%3DM6DS5%3Dwus6sYMOO2drq%2BeQvf7NyXAweWYmQVuFiw%40mail.gmail.com.