-
Notifications
You must be signed in to change notification settings - Fork 8
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
ToDo | General #37
Comments
@oschulz @fhagemann a small question: advice on how to name an optional bool variable in Then it would look something like this: pss_table, pss_truth = LegendGeSim.simulate_pulses(detector_metadata_filename, pet_input_file,
environment_settings, simulation_settings, noise_model; n_waveforms=100, overwrite_fields=true) |
Which of the arguments of |
Nothing "contains" data that should be overwritten. The argument LegendGeSim.jl/src/stp_to_pss.jl Line 19 in 249a222
|
How about, in general, using |
I like it! Maybe some how include the word "cached" in the variable, e.g. |
Makes sense. |
Question is: what exactly does the keyword do? I feel like there might be three options which might be wanted by the user:
We might need two keywords for this, something like |
This keyword controls whether to read cached simulation from file based on given cached name or overwrite it. Option 1 is achieved by not providing a cached name in the simulation, then it doesn't matter what Option 2 calculate the fields and cache them to a file - currently done if file does not exist yet; if it exists, the fields will be read unless |
ToDo items that span several stages from detector to elec response simulation
raw
file with pygama -> actually first check if the format is still the same, this is format from 2 years agooverwrite
as input for detector simulation (overwrite SSD hdf5 or fieldgen WP and EP files) -> implement also forsimulate_pulses
andsimulate_waveforms
, maybe call "overwrite_det_sim" or something like that to not be confused with caching waveforms themselvessimulate_waveforms
can read cachedpss
file, butpss
does not start fromstp
, only frompet
-> think of caching in general, how to organize@info
to not say which line/module it prints from to avoid log clutterT
stuff is, why it's good, and some rule of thumb on what to do thereThe text was updated successfully, but these errors were encountered: