Skip to content

Add support for non empty domain var by name [ch1877] #161

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

Conversation

gsvic
Copy link
Contributor

@gsvic gsvic commented May 7, 2020

No description provided.

@gsvic gsvic requested a review from Shelnutt2 May 7, 2020 13:59
@gsvic gsvic force-pushed the victorgiannakouris/ch1877/add-support-for-non-empty-domain-var-by-name branch 2 times, most recently from 9f00fc1 to d99068d Compare May 7, 2020 14:39
@gsvic gsvic requested a review from Shelnutt2 May 7, 2020 14:40
try (Domain domain = schema.getDomain()) {
long numDims = domain.getNDim();
for (long dimIdx = 0; dimIdx < numDims; ++dimIdx) {
Dimension dimension = domain.getDimension(dimIdx);
Copy link
Member

Choose a reason for hiding this comment

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

Does the dimension need to be inside a try for the autoclosure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact no, this is a leftover from the old code. Fixed that.

@gsvic gsvic force-pushed the victorgiannakouris/ch1877/add-support-for-non-empty-domain-var-by-name branch from d99068d to 78541dc Compare May 7, 2020 14:49
@gsvic gsvic merged commit 26ca73d into master May 7, 2020
@gsvic gsvic deleted the victorgiannakouris/ch1877/add-support-for-non-empty-domain-var-by-name branch June 3, 2020 13:05
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