Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bufferization pipe #758

Merged
merged 3 commits into from
Nov 27, 2020
Merged

Bufferization pipe #758

merged 3 commits into from
Nov 27, 2020

Conversation

andLaing
Copy link
Collaborator

moves some of the pipe from buffy to a compound component in components so it can be used by the parametrized detsim city (under development).

Also adds a couple of protections to the buffer functions so that they are safe for both cities.

Copy link
Collaborator

@mmkekic mmkekic left a comment

Choose a reason for hiding this comment

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

After a test and some squashing this is ready for approval

@@ -141,6 +141,9 @@ def position_signal(triggers : List ,
pmt_q = np.asarray(pmt_charge.tolist())
sipm_q = np.empty((0,0))\
if sipm_charge.empty else np.asarray(sipm_charge.tolist())
else:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a test for this, it should be very straightforward. Something similar to
test_buffer_calculator flow but just asserting that the output is the same when using pandas and numpy array as input?

Makes a compound component for use in buffy and
the new parametrized detsim city
Copy link
Collaborator

@mmkekic mmkekic left a comment

Choose a reason for hiding this comment

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

This PR adapts bufferization functions and extract the pipe that creates buffers from the buffy flow allowing it to be reused in the detsim city as well (#691, #700). Tests are added to show that the functions work both with pandas and numpy inputs. Thanks for the effort!

@carmenromo carmenromo merged commit 6ef9a98 into next-exp:master Nov 27, 2020
@andLaing andLaing deleted the bufferization-pipe branch December 21, 2020 13:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants