Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visprep #21

Merged
merged 5 commits into from
May 23, 2017
Merged

Visprep #21

merged 5 commits into from
May 23, 2017

Conversation

blsemo
Copy link
Owner

@blsemo blsemo commented May 19, 2017

Add prep steps for VGA to command line

blsemo added 3 commits May 17, 2017 22:56
pointless checks from GridDialog (the QSpinner makes sure the result is
always within the set limits, no point checking again)
@blsemo blsemo requested a review from pklampros May 19, 2017 14:17
{
VisPrepParser parser;
ArgumentHolder ah{"prog", "-pr", "foo"};
REQUIRE_THROWS_WITH(parser.parse(ah.argc(), ah.argv()), Catch::Contains("Restricted visibilyt of 'foo' makes no sense, use a positive number or -1 for unrestricted"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: visibilyt -> visibility

{
VisPrepParser parser;
ArgumentHolder ah{"prog", "-pr", "0.0"};
REQUIRE_THROWS_WITH(parser.parse(ah.argc(), ah.argv()), Catch::Contains("Restricted visibilyt of '0.0' makes no sense, use a positive number or -1 for unrestricted"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: visibilyt -> visibility

if ( m_maxVisibility == 0.0)
{
std::stringstream message;
message << "Restricted visibilyt of '" << argv[i] << "' makes no sense, use a positive number or -1 for unrestricted";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: visibilyt -> visibility

if ( gridSize > gp.getMax() || gridSize < gp.getMin())
{
std::stringstream message;
message << "Chosen grid spacing " << gridSize << " is outside of the expected intervall of "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: intervall -> interval

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, some tests for this exception?

@blsemo
Copy link
Owner Author

blsemo commented May 19, 2017 via email

@blsemo blsemo merged commit 7eb2114 into master May 23, 2017
@blsemo blsemo deleted the visprep branch May 23, 2017 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants