<commit_before>from StellarSpectra import grid_tools

#Odyssey
# raw_library_path = "/n/holyscratch/panstarrs/iczekala/raw_libraries/PHOENIX/"
# out_path = "/scratch/" + "PHOENIX_LkCa15.hdf5"

#myHDF5Interface = grid_tools.HDF5Interface("libraries/Kurucz_master.hdf5")
#myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_F_julia.hdf5")
myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_F.hdf5")
# myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_LkCa15.hdf5")
# myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_M.hdf5")

print("Library only spans from", myHDF5Interface.bounds)

myInstrument = grid_tools.TRES()
# myInstrument = grid_tools.SPEX_SXD()
# myInstrument = grid_tools.SPEXMgb()

out_path = "libraries/" + "PHOENIX_TRES_F.hdf5"
# out_path = "libraries/" + "PHOENIX_TRES_4000.hdf5"
# out_path = "libraries/" + "PHOENIX_TRES_2300.hdf5"

#out_path = "libraries/" + "Kurucz_TRES.hdf5"

#out_path = "libraries/" + "PHOENIX_TRES_F_julia.hdf5"

HDF5InstGridCreator = grid_tools.HDF5InstGridCreator(myHDF5Interface, filename=out_path, Instrument=myInstrument,
                        ranges={"temp":(5400, 6700), "logg":(2.5,5.5), "Z":(-1.5,1.), "alpha":(0.0,0.0)})<commit_msg>Making Kurucz grid<commit_after>from StellarSpectra import grid_tools

#Odyssey
# raw_library_path = "/n/holyscratch/panstarrs/iczekala/raw_libraries/PHOENIX/"
# out_path = "/scratch/" + "PHOENIX_LkCa15.hdf5"

myHDF5Interface = grid_tools.HDF5Interface("libraries/Kurucz_master.hdf5")
#myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_F_julia.hdf5")
#myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_F.hdf5")
# myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_LkCa15.hdf5")
# myHDF5Interface = grid_tools.HDF5Interface("libraries/PHOENIX_M.hdf5")

print("Library only spans from", myHDF5Interface.bounds)

myInstrument = grid_tools.TRES()
# myInstrument = grid_tools.SPEX_SXD()
# myInstrument = grid_tools.SPEXMgb()

#out_path = "libraries/" + "PHOENIX_TRES_F.hdf5"
# out_path = "libraries/" + "PHOENIX_TRES_4000.hdf5"
# out_path = "libraries/" + "PHOENIX_TRES_2300.hdf5"

out_path = "libraries/" + "Kurucz_TRES.hdf5"

#out_path = "libraries/" + "PHOENIX_TRES_F_julia.hdf5"

HDF5InstGridCreator = grid_tools.HDF5InstGridCreator(myHDF5Interface, filename=out_path, Instrument=myInstrument)#,
                        #ranges={"temp":(5400, 6700), "logg":(2.5,5.5), "Z":(-1.5,1.), "alpha":(0.0,0.0)})
{'fraction_non_alphanumeric': 0.14650974025974026, 'fraction_numerical': 0.045454545454545456, 'mean_word_length': 6.492401215805471, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, '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': '3494537', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1068, 'n_words': 111}