Open SeanBryan51 opened 12 months ago
I wonder if we could use something like Path.rglob()
to find the path to the offline/
directory instead of hard-wiring it. I haven't checked if we use Model.src_dir
for anything else.
I also think this should be changed:
It should probably be given by the repo instead of set in Model.
On this line:
https://github.com/CABLE-LSM/benchcab/blob/6f586a1afbfbe636bdcbe53bcbc1d6143fba0dcf/benchcab/model.py#L40-L41
The
Model
class should not have to know whetherrepo
is aGitRepo
or anSVNRepo
, we should only be working with theRepo
interface. This should be addressed if we want to properly test themodel
andrepo
modules.Originally posted by @SeanBryan51 in https://github.com/CABLE-LSM/benchcab/issues/208#issuecomment-1821888909