Advertisement
rasmit

Untitled

Feb 28th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # for t in range(0, len(star_formation_times) - 1):
  2. # print(star_formation_times[t], node["time"], star_formation_times[t+1], node.ds.all_data()[("gas", "H2_fraction")])
  3.  
  4. # if star_formation_times[t] < node["time"] and star_formation_times[t+1] > node["time"]:
  5. # time_before = node["time"] - star_formation_times[t]
  6. # time_after = star_formation_times[t+1] - node["time"]
  7.  
  8. # if 0.33 > min(time_before, time_after):
  9. # if node.ds.all_data().max(("gas", "H2_fraction")) <= 1E-4:
  10. # return False
  11.  
  12. # # @TODO - Check mass ratio vs cosmic mean
  13.  
  14. # break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement