Hi Frank, There is a decorator provided by Python you can use to create an agenda from a function:
import pyarts ws = pyarts.workspace.Workspace() @pyarts.workspace.arts_agenda def my_iy_main_agenda(ws): ws.ppathCalc() ws.iyEmissionStandard() ws.iy_main_agenda = my_iy_main_agenda Cheers, Oliver > On 21 Feb 2022, at 21:28, Werner, Frank (329D) <frank.wer...@jpl.nasa.gov> > wrote: > > Dear ARTS developers, > > I am trying to use ‘AgendaSet’ in the pyarts environment. > > Naturally, the common way (used in an ‘.arts’ control file) results in a > syntax error: > ‘ws.AgendaSet(ws.iy_main_agenda){ws.ppathCalc, ws.iyEmissionStandard}’. > > I tried playing around with different commands, as well as ‘AgendaAppend’, > but nothing seems to work. Is ‘AgendaSet’ even possible in pyarts? If so, > what is the correct syntax for calling it? > > Thanks for your help and best wishes, > Frank > > -- > Frank Werner > Mail Stop 183-701, Jet Propulsion Laboratory > 4800 Oak Grove Drive, Pasadena, California 91109, United States > Phone: +1 818 354-1918 > Fax: +1 818 393 5065 > > _______________________________________________ > arts_users.mi mailing list > arts_users.mi@lists.uni-hamburg.de > https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi _______________________________________________ arts_users.mi mailing list arts_users.mi@lists.uni-hamburg.de https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi