ert icon indicating copy to clipboard operation
ert copied to clipboard

Creating SiteConfig from dict and from file results in very different objects

Open eivindjahren opened this issue 1 year ago • 1 comments

When creating SiteConfig from a file name. The job list will be populated, while if you create from dict, the list will not be populated. This will have to be reconsiled in some way. Perhaps the best way to handle it is that both code paths will have to explicitly add the jobs.

Current behavior:

>>> from ert._c_wrappers.enkf import SiteConfig
>>> filename = "..." # name of config file
>>> config_dict = {...} # Config dictionary with same values as the config file
>>> SiteConfig(filename).getAvailableJobs()
ExtJoblist(size=28, joblist=['DELETE_FILE: 94668020356560',...
>>> SiteConfig(config_dict=config_dict).getAvailableJobs()
ExtJoblist(size=0, joblist=[]) ...

eivindjahren avatar Aug 23 '22 12:08 eivindjahren

Relates to #2571

oysteoh avatar Sep 01 '22 07:09 oysteoh