feat(GridFire): updated

This commit is contained in:
2026-04-20 12:42:23 -04:00
parent 54d3ec9920
commit e704d5a1a7
4 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
import pynucastro as pyna
def main():
lib = pyna.ReacLibLibrary()
filtered_rates = []
for rate in lib.get_rates():
if all(nuc.Z <= 26 for nuc in rate.reactants):
filtered_rates.append(rate)
out_file = "reaclib_pynucastro_latest_Z26.dat"
with open(out_file, "w") as f:
for rate in filtered_rates:
rate.write_to_file(f)
if __name__ == "__main__":
main()