Skip to content

Commit

Permalink
Minor fix to np.copy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dae Heun Koh committed Feb 8, 2024
1 parent cd6e9a7 commit 82c7ccb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analysis/classes/Interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self,
self.nu_id = int(nu_id)
self.volume_id = int(volume_id)
self.image_id = int(image_id)
self.vertex = vertex
self.vertex = np.copy(vertex)
self.vertex_mode = vertex_mode
self.is_neutrino = is_neutrino
self._units = units
Expand Down
2 changes: 1 addition & 1 deletion analysis/classes/Particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(self,
self.volume_id = int(volume_id)
self.semantic_type = int(semantic_type)

self.index = np.copy(index)
self.index = index
self.points = points
self.sources = sources
self.depositions = depositions
Expand Down
2 changes: 1 addition & 1 deletion analysis/classes/TruthParticleFragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,
# Set attributes
self._depositions_MeV = np.atleast_1d(depositions_MeV)

self.truth_index = np.copy(truth_index)
self.truth_index = truth_index
self._truth_points = truth_points
self._truth_depositions = np.atleast_1d(truth_depositions) # Must be ADC
self._truth_depositions_MeV = np.atleast_1d(truth_depositions_MeV) # Must be MeV
Expand Down

0 comments on commit 82c7ccb

Please sign in to comment.