44 std::filesystem::path path(filename);
47 std::string extension = compression ==
CompressionMode::None ? path.extension() : path.stem().extension();
50 }
catch (storm::exceptions::InvalidArgumentException&) {
52 storm::exceptions::InvalidArgumentException,
53 "The file '" << filename
54 <<
"' does not have an extension to determine the model export format from. Add a file extension or specify the format explicitly.");