Hello. I am a college student, relatively new to using OpenMC, and am having issues using a .h5 custom format source. The source is made from a MCPL file, and currently works on my Professor’s laptop, but not on mine or our lab computer’s. We used slightly different installation packages, but the rest of the program has been working fine.
Here is the source section of the code:
#Settings
settings = openmc.Settings()
settings.run_mode = ‘fixed source’
settings.particles = 50000
settings.batches = 5
#IssueHere!!
settings.source = openmc.Source(filename=‘custom_source.h5’)
settings.export_to_xml()
…and the error message I receive is:
TypeError: IndependentSource.init() got an unexpected keyword argument ‘filename’
Any help would be appreciated. Thanks!