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

Test import of GRNmap input workbooks for non-standard formatted worksheets #902

Merged
merged 5 commits into from
Jan 8, 2021

Conversation

Onariaginosa
Copy link
Collaborator

Completed testing for Optimization Parameters and Optimization Diagnostics sheets, as mentioned in issue #884

Copy link
Owner

@dondi dondi left a comment

Choose a reason for hiding this comment

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

Some items noted regarding getSheetHeader, but we can discuss that later (it might just be a roadmap I’m not recalling). The code appears to have no other issues.

return (column === 0) ? "Parameter" : "Value";
}
} else {
// if (sh)
Copy link
Owner

Choose a reason for hiding this comment

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

Is this unfinished or is else genuinely not needed?

@@ -336,11 +421,11 @@ const parseTwoColumnSheet = (sheet) => {
}
}
if (sheet.data[row].length > 1) {
if (sheet.data[row][1] !== getSheetHeader(sheet.name, 1)) {
if (sheet.data[row][1] !== getSheetHeader(sheet.name, 1, row)) {
Copy link
Owner

Choose a reason for hiding this comment

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

Interesting what’s happening here…we either need to talk about this or if I’ve forgotten, I’ll need to refresh my memory on this game plan. It looks like row has been added as a parameter to getSheetHeader, but getSheetHeader only does something if row === 0, and as far as I can tell, all invocations of getSheetHeader also have row === 0.

It looks like you are planning some additional work here, something for this semester?

@dondi dondi merged commit c7ef420 into beta Jan 8, 2021
dondi added a commit that referenced this pull request Jan 8, 2021
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