-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
…optimization parameters tester code. In the process of completing optimizations diagnostics tests
There was a problem hiding this 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) |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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?
Integrating #902 from @Onariaginosa.
Completed testing for Optimization Parameters and Optimization Diagnostics sheets, as mentioned in issue #884