Repository navigation
Remove unused library code - #9
Merged
Merged
Conversation
nn_utils.py: scaffolding for a SIREN surrogate of the wire response kernel, extracted (549fbe9) from siren_response_training/, which never entered this repo. No caller on any branch; unrelated to the SCE-SIREN. Removed with its API doc entry. sparse_utils.py: a second, incompatible sparse format ((N,2) indices) used only by its own test; output.to_sparse/to_dense is the format the simulator, production, profiler and visualization use. Its test cases (round trip, signed threshold, duplicate accumulation, empty input) are ported to test_output.py against output.py, which exposed that to_dense could not read to_sparse's own wire dict (it fell through to np.asarray(dict)). Added that branch; both new tests fail without it.
save_event/load_event/list_events expected 'indices'/'signal'/'n_signal' keys that no current output produces (to_sparse returns wire/time/values) and only knew the 2-volume U/V/Y detector; nothing called them. Event I/O is production/save.py + load.py (N volumes, wire or pixel, usable from a notebook). load_sce_data now orders volumes numerically (volume_10 after volume_9). Docs updated.
…ate include_noise - track_hits: drop group_hits_by_track / label_hits / sparse_hits_to_dense (the K_wire x K_time standalone path, test-only, not used by the simulator) and the module-level finalize_track_hits (duplicate of DetectorSimulator.finalize_track_hits; only stale-imported by one test). Their tests go with them. - loader: drop the example main() CLI. - TrackHitsConfig.threshold: no readers; removed with its create_track_hits_config kwarg. - Pixel differentiable response: replace the silent alias to the production builder (unreachable: __init__ rejects differentiable pixel) with an explicit error. - include_noise: still accepted but now warns (DeprecationWarning); tests and READMEs use include_intrinsic_noise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes code with no callers in the repository:
nn_utils.py,sparse_utils.py, single-file event I/O inutils.py, the legacy standalone track-hit path, the loader CLI and an unused config field.to_densenow reads the wire output ofto_sparse.include_noisestill works but warns.