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

Refactor optical data to use extensible params/states #1280

Merged
merged 7 commits into from
Jun 18, 2024

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Jun 17, 2024

This refactors the optical collector to use "user" params and state rather than a state store.

@sethrj sethrj added core Software engineering infrastructure minor Minor internal changes or fixes labels Jun 17, 2024
@sethrj sethrj requested review from amandalund and esseivaju June 17, 2024 19:52
@sethrj sethrj marked this pull request as draft June 18, 2024 02:00
@sethrj sethrj changed the title Core data optical Refactor optical data to use extensible params/states Jun 18, 2024
@sethrj sethrj force-pushed the core-data-optical branch from a9707a4 to efc6b24 Compare June 18, 2024 14:11
@sethrj sethrj force-pushed the core-data-optical branch 2 times, most recently from e632ce6 to a95300d Compare June 18, 2024 15:25
@sethrj sethrj force-pushed the core-data-optical branch from a95300d to aa62614 Compare June 18, 2024 15:33
@sethrj sethrj marked this pull request as ready for review June 18, 2024 15:34
Copy link
Contributor

@amandalund amandalund left a comment

Choose a reason for hiding this comment

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

Nice, thanks @sethrj!

storage_->obj.state<MemSpace::native>(
core_state.stream_id(), core_state.size()),
storage_->size[core_state.stream_id().get()]}};
scintillation_->device_ref(), state.store.ref()}};
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this missing the buffer size?

Suggested change
scintillation_->device_ref(), state.store.ref()}};
scintillation_->device_ref(), state.store.ref(), state.buffer_size}};

Copy link
Member Author

Choose a reason for hiding this comment

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

Goodness, why did that compile, and even worse how does the test pass? 👀 Good catch. I've checked the other call signatures.

@sethrj sethrj enabled auto-merge (squash) June 18, 2024 16:48
@sethrj sethrj merged commit 855b707 into celeritas-project:develop Jun 18, 2024
29 checks passed
@sethrj sethrj deleted the core-data-optical branch June 18, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Software engineering infrastructure minor Minor internal changes or fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants