resolve_project_folder#
- lumopt2.utils.common.resolve_project_folder(project) str | None#
Return the on-disk project folder for
project, creating it if needed.The canonical location is
project.fom.config_map.project_folder, whichConfigMappopulates with a (timestamped) name as soon as the FOM is constructed. This helper resolves that path and ensures the directory exists so callers can immediately write logs, plots, or intermediate results into it.- Parameters:
- project
Projector duck-typedequivalent The project whose output folder should be resolved. The function only requires that
project.fom.config_map.project_folderis accessible and yields a non-empty string.
- project
- Returns: