Skip to content

Commit

Permalink
Update LIController to use new Process pybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkamp1 authored and austinschneider committed Jan 10, 2024
1 parent f5b44ed commit ff5c8c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/LIController.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def SetCrossSections(self,
:param list<CrossSectionCollection> secondary_cross_section_collections: The list of cross section collections for the primary process
"""
# Set primary cross sections
self.primary_injection_process.SetCrossSections(primary_cross_section_collection)
self.primary_physical_process.SetCrossSections(primary_cross_section_collection)
self.primary_injection_process.cross_sections = primary_cross_section_collection
self.primary_physical_process.cross_sections = primary_cross_section_collection

# Loop through secondary processes
for sec_inj,sec_phys in zip(self.secondary_injection_processes,
Expand All @@ -241,8 +241,8 @@ def SetCrossSections(self,
for sec_xs in secondary_cross_section_collections:
# Match cross section collection on the primary type
if sec_xs.MatchesPrimary(record):
sec_inj.SetCrossSections(sec_xs)
sec_phys.SetCrossSections(sec_xs)
sec_inj.cross_sections = sec_xs
sec_phys.cross_sections = sec_xs
found_collection = True
if(not found_collection):
print('Couldn\'t find cross section collection for secondary particle %s; Exiting'%record.primary_type)
Expand Down

0 comments on commit ff5c8c8

Please sign in to comment.