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

Bug fix in LegendHDF5IO extension and restructure tests #428

Merged
merged 11 commits into from
Nov 5, 2024

Conversation

fhagemann
Copy link
Collaborator

The current implementation of simulate_waveforms does not work because of some missing packages that have to be explicitly loaded in the LegendHDF5IO extension.

Also, I restructured the test directory and added tests for simulate_waveforms using LegendHDF5IO.

@fhagemann fhagemann added the bug Something isn't working label Nov 5, 2024
Comment on lines +93 to +111
@timed_testset "LegendHDF5IO simulate_waveforms" begin
timed_simulate_waveforms(
evt_table,
sim,
".",
chunk_n_physics_events = 1,
max_nsteps = 4000,
Δt = 1u"ns",
number_of_carriers = 20,
number_of_shells = 2,
verbose = false
)
@info isfile("generated_waveforms_evts_1-1.h5")
@test contact_charge_signals == LegendHDF5IO.lh5open("generated_waveforms_evts_1-1.h5") do h5f
@test haskey(h5f, "generated_waveforms")
LegendHDF5IO.readdata(h5f.data_store, "generated_waveforms")
end
rm("generated_waveforms_evts_1-1.h5")
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the new test, which might get lost in the number of code changes here.

@fhagemann fhagemann force-pushed the hdf5 branch 2 times, most recently from 8fbff89 to 66414f3 Compare November 5, 2024 10:54
@fhagemann fhagemann changed the title Bugfix in LegendHDF5IO extension and restructure tests Bug fix in LegendHDF5IO extension and restructure tests Nov 5, 2024
@fhagemann fhagemann merged commit 8fb4773 into JuliaPhysics:main Nov 5, 2024
8 checks passed
@fhagemann fhagemann deleted the hdf5 branch November 5, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant