ENH: CLI: skip layer height limit validate when slicing for existing models
JIRA: no jira Change-Id: I1444a28b500ca7d08ed2606eecfa5cfaf261105e
This commit is contained in:
parent
ac6cc81591
commit
72989c8a2f
|
@ -4287,6 +4287,10 @@ int CLI::run(int argc, char **argv)
|
||||||
StringObjectException warning;
|
StringObjectException warning;
|
||||||
auto err = print->validate(&warning);
|
auto err = print->validate(&warning);
|
||||||
if (!err.string.empty()) {
|
if (!err.string.empty()) {
|
||||||
|
if ((STRING_EXCEPT_LAYER_HEIGHT_EXCEEDS_LIMIT == err.type) && no_check) {
|
||||||
|
BOOST_LOG_TRIVIAL(warning) << "got warnings: "<< err.string << std::endl;
|
||||||
|
}
|
||||||
|
else {
|
||||||
BOOST_LOG_TRIVIAL(error) << "got error when validate: "<< err.string << std::endl;
|
BOOST_LOG_TRIVIAL(error) << "got error when validate: "<< err.string << std::endl;
|
||||||
boost::nowide::cerr << err.string << std::endl;
|
boost::nowide::cerr << err.string << std::endl;
|
||||||
int validate_error;
|
int validate_error;
|
||||||
|
@ -4314,6 +4318,7 @@ int CLI::run(int argc, char **argv)
|
||||||
record_exit_reson(outfile_dir, validate_error, index+1, cli_errors[validate_error], sliced_info);
|
record_exit_reson(outfile_dir, validate_error, index+1, cli_errors[validate_error], sliced_info);
|
||||||
flush_and_exit(validate_error);
|
flush_and_exit(validate_error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!warning.string.empty()) {
|
else if (!warning.string.empty()) {
|
||||||
BOOST_LOG_TRIVIAL(warning) << "got warnings: "<< warning.string << std::endl;
|
BOOST_LOG_TRIVIAL(warning) << "got warnings: "<< warning.string << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue