[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Appending to dictionaries in ClassAd attributes?



Thatâs an interesting idea. I donât see a way to do an incremental building of a nested record in the current language.

 - Jaime

> On Jul 10, 2023, at 12:04 PM, Oliver Freyermuth <freyermuth@xxxxxxxxxxxxxxxxxx> wrote:
> 
> Dear HTCondor experts,
> 
> given the power of ClassAds, I wondered whether there is a way to build up dictionaries, for example:
> 
> ApelSpecs = []
> ApelSpecs += [HEPscore23=12.0]
> ApelSpecs += [HEPSPEC=10.0]
> 
> The "+" operator does not work here. Is there a function one could use, or is this a feature currently missing from the ClassAd language?
> This would be nice to build up configuration from various different configuration files, or inject values externally by appending to an existing dictionary.
>