<jupyter_start><jupyter_text>Example on How to Use Net Yields Prepared by <NAME><jupyter_code>%matplotlib nbagg
import matplotlib.pyplot as plt
import sys
import sygma as s
import omega as o
import numpy as np
print (s.global_path)
#%matplotlib inline
import stellab
import read_yields as ry
import matplotlib
table='yield_tables/agb_and_massive_stars_nugrid_MESAonly_fryer12delay.txt'<jupyter_output><empty_output><jupyter_text>Default setup - total yields<jupyter_code># Initial metallicity 0
#includes pop3_table='yield_tables/popIII_heger10.txt',
iniZ = 0.0

# Original yields
o_NG = o.omega(galaxy='milky_way', table=table, \
         special_timesteps=60, exp_ml=1.0, mass_frac_SSP=0.35, nb_1a_per_m=1.5e-3, DM_evolution=True, sfe=0.04,\
           t_sf_z_dep=0.3, mass_loading=1.02, iniZ=iniZ)<jupyter_output>OMEGA run in progress..
   OMEGA run completed - Run time: 3.84s<jupyter_text>Setup with total yields as input but net yields are calculated in the code and then applied<jupyter_code># Initial metallicity 0
#includes pop3_table='yield_tables/popIII_heger10.txt',
iniZ = 0.0

#turn on net yield capability
yield_interp='wiersma'

#yield input not net yields
netyields_on=False

#should not matter
wiersmamod=False

Z_trans=-1

# Original yields
o_NG_net = o.omega(galaxy='milky_way', table=table, \
         special_timesteps=60, exp_ml=1.0, mass_frac_SSP=0.35, nb_1a_per_m=1.5e-3, DM_evolution=True, sfe=0.04,\
           t_sf_z_dep=0.3, mass_loading=1.02, iniZ=iniZ,yield_interp=yield_interp,netyields_on=netyields_on)<jupyter_output>OMEGA run in progress..
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
Net-yields approach is not applied for PopIII yield input fot time
   OMEGA run completed - Run time: 4.2s
{'fraction_non_alphanumeric': 0.0676056338028169, 'fraction_numerical': 0.023340040241448694, 'mean_word_length': 5.261964735516373, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '447245', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 894, 'n_tokens_neox': 856, 'n_words': 281, 'path': 'DOC/Capabilities/Netyields.ipynb', 'repo_name': 'katewomack/NuPyCEE', 'size': '2495'}