<jupyter_start><jupyter_text>Task 2<jupyter_code>import matplotlib.pyplot as plt
import numpy as np
import csv
%matplotlib inline<jupyter_output><empty_output><jupyter_text>Plot the output of FC.xx (FCF Spectrum)We took the spectrum from the outfile into a csv file so that we could plot it nicelyIn order to get the Duschinsky matrix and the delta vector correctly, we inserted print statements in the FC.xx code and got it out that way<jupyter_code>#The V3.spec.out content is in the csv file V3_spectrum
xaxis = [0.0 for i in range(0,2000+300)]
yaxis = [0.0 for i in range(0,2000+300)]
ctr = 0

with open('V3_spectrum.csv') as csvfile:
    readCSV = csv.reader(csvfile, delimiter=',')
    for row in readCSV:
        xaxis[ctr] = float(row[0])
        yaxis[ctr] = float(row[1])
        ctr += 1
    
fig, ax = plt.subplots()

for i in range(0,2000+300):
    ax.scatter(xaxis[i],yaxis[i],c='b')

plt.xlabel("Position ($cm^{-1}$)")
plt.ylabel("FCF")
plt.rcParams["figure.figsize"] = (30,10)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12584704743465633, 'fraction_numerical': 0.03969022265246854, 'mean_word_length': 4.619565217391305, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '363926', 'license': 'MIT', 'n_tokens_mistral': 412, 'n_tokens_neox': 383, 'n_words': 114, 'path': 'Project_3_Franck_Condon_Factors/Task2.ipynb', 'repo_name': 'aborle1/cdlproj_wk2_personal', 'size': '1033'}