For your issue 1, I just removed the getdata function from nui.jl. The Mimi built-in method, where one says model[component, name] has improved to the point that it handles all the relevant cases, SFAICT.
For issue 2, I couldn't reproduce the problem. I found a different problem, which is that cached_fallback was looking for the extraction files in a different location than optimize-surface was writing them, but I think you already fixed that on your side. Once I fixed that, everything was fine.
Note that I fixed this by leaving the code writing into the main data folder, rather than cache. It's not crystal clear that it shouldn't, in the case of optimize-surface, because there's no fall-back option currently that would actually run the optimization, if the data wasn't there. In any case, not worth worrying about for now.
Here you go.
For your issue 1, I just removed the
getdata
function from nui.jl. The Mimi built-in method, where one saysmodel[component, name]
has improved to the point that it handles all the relevant cases, SFAICT.For issue 2, I couldn't reproduce the problem. I found a different problem, which is that cached_fallback was looking for the extraction files in a different location than optimize-surface was writing them, but I think you already fixed that on your side. Once I fixed that, everything was fine.
Note that I fixed this by leaving the code writing into the main data folder, rather than cache. It's not crystal clear that it shouldn't, in the case of optimize-surface, because there's no fall-back option currently that would actually run the optimization, if the data wasn't there. In any case, not worth worrying about for now.