Skip to content

Expanded output for get_surrogate_values()#42

Merged
Lance-Drane merged 13 commits into
developfrom
expanded-output
Jun 18, 2026
Merged

Expanded output for get_surrogate_values()#42
Lance-Drane merged 13 commits into
developfrom
expanded-output

Conversation

@Lance-Drane

Copy link
Copy Markdown
Contributor

Want this to be a PR instead of a hotfix develop push because this changes the output structure of get_surrogate_values (dataclass only). get_surrogate_values() should in theory handle any N-dimensional data structure, and we also don't necessarily want to couple its return value to get_next_point or get_next_points, so I went ahead and created a custom return class for it.

(The CI action is temporary and will be reverted after this MR is approved)

Closes #40

Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
Comment thread src/dial_service/dial_service.py

@vreshniak vreshniak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything looks fine to me

Comment thread src/dial_service/dial_service.py
@Lance-Drane

Copy link
Copy Markdown
Contributor Author

UPDATE: also returning the length of dataset_x in all stateless functions per request. This can sometimes be useful in INTERSECT to handle the inherent asynchronous nature of function calls.

Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>

@konstpieper konstpieper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me, just have two questions for clarification.

Comment thread src/dial_dataclass/dial_dataclass_responses.py
Comment thread src/dial_dataclass/dial_dataclass_responses.py
Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
also update the provided scripts

Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
@Lance-Drane Lance-Drane merged commit 82b0f46 into develop Jun 18, 2026
19 checks passed
@Lance-Drane Lance-Drane deleted the expanded-output branch June 18, 2026 21:32
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.

Add additional entries to output schema of get_surrogate_values

3 participants