<commit_before>#!/usr/bin/env python

from matplotlib import cm
import matplotlib.pyplot as plt
import sncosmo
cmap = cm.get_cmap('gist_rainbow')
model = sncosmo.get_model('hsiao')

disp = model.disp()
flux = model.flux(0.)

dmin = 2600.
dmax = 7400.
idx = (disp > dmin) & (disp < dmax)
disp = disp[idx]
flux = flux[idx]

cscale = (dmax - disp[1:]) / (dmax - dmin)
colors = cmap(cscale)

fig = plt.figure(figsize=(1., 1.), facecolor=(0., 0., 0., 0.))
ax = plt.axes([0., 0., 1., 1.], axisbg=(0.,0., 0., 0.))

for i in range(len(cscale)):
    d0, d1 = disp[i], disp[i+1]<commit_msg>update make_logo.py script for new models<commit_after>#!/usr/bin/env python
"""Make a 500x500 pixel png of the Hsiao spectrum at phase = 0"""

from matplotlib import cm
import matplotlib.pyplot as plt
import sncosmo
cmap = cm.get_cmap('gist_rainbow')
model = sncosmo.get_sourcemodel('hsiao')

wave = model.wavelengths
flux = model.flux(0.)

wmin = 2600.
wmax = 7400.
mask = (wave > wmin) & (wave < wmax)
wave = wave[mask]
flux = flux[mask]

cscale = (wmax - wave[1:]) / (wmax - wmin)
colors = cmap(cscale)

fig = plt.figure(figsize=(1., 1.), facecolor=(0., 0., 0., 0.))
ax = plt.axes([0., 0., 1., 1.], axisbg=(0.,0., 0., 0.))

for i in range(len(cscale)):
    d0, d1 = wave[i], wave[i+1]
{'fraction_non_alphanumeric': 0.19400630914826497, 'fraction_numerical': 0.04810725552050473, 'mean_word_length': 3.8068181818181817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'dir': 'git-commits-cleaned', 'id': '2607151', 'n_tokens_mistral': 576, 'n_tokens_neox': 532, 'n_words': 142}