experimentInfoFromState builds an ExperimentInfo summary from a state.json.
(workflowID, branchName string, state *ExperimentState)
| 662 | |
| 663 | // experimentInfoFromState builds an ExperimentInfo summary from a state.json. |
| 664 | func experimentInfoFromState(workflowID, branchName string, state *ExperimentState) ExperimentInfo { |
| 665 | return ExperimentInfo{ |
| 666 | WorkflowID: workflowID, |
| 667 | Branch: branchName, |
| 668 | Experiments: len(state.Counts), |
| 669 | TotalRuns: experimentTotalRuns(state), |
| 670 | LastRun: experimentLastRun(state), |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | // experimentDetailsFromState builds ExperimentDetails from a state.json. |
| 675 | func experimentDetailsFromState(workflowID, branchName string, state *ExperimentState) *ExperimentDetails { |
no test coverage detected