-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Show error message when final result doesn't have default metric #2162
Conversation
Lijiaoa
commented
Mar 18, 2020
} | ||
|
||
getFinalDataFormat = (): void => { | ||
for(let i = 0; this.state.isilLegalFinal === false; i++){ | ||
if(TRIALS.succeededTrials()[0] !== undefined && TRIALS.succeededTrials()[0].final !== undefined){ |
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.
What if we don't have succeeded trials?
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.
line 64, quit for loop.
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.
I mean TRIALS.succeddedTrials()
will return an empty array, right? What happens to x[0]
if x
is an empty array?
src/webui/src/App.tsx
Outdated
} | ||
|
||
getFinalDataFormat = (): void => { | ||
for(let i = 0; this.state.isilLegalFinal === false; i++){ |
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.
ilLegal? Really? Should be illegal.
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.
ok
src/webui/src/App.tsx
Outdated
trialsUpdateBroadcast, | ||
metricGraphMode, changeMetricGraphMode: this.changeMetricGraphMode | ||
interval, | ||
columnList, changeColumn: this.changeColumn, |
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.
Don't change indentation.
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.
ok