<commit_before># MoogPy
Python-Fortran hybrid version of MOOG spectral synthesis code


# Installation
1) fork the repository
2) ensure that MoogPy/MoogTools/ is in your PYTHONPATH, or otherwise visible from your python session
3) enter the MoogPy/MoogSource/ directory, run the recompile.sh script.  This will compile the FORTRAN part of Moog, wrap it in python, and copy the MoogPy.so file to the MoogPy/MoogTools/ directory
4) Download the MoogPyData.tar.gz file from http://www.mpia.de/~deen/Software/MoogPy/MoogPyData.tar.gz, place it in the MoogPy/data/ directory, and unzip it.  It should create 3 directories (AbsorptionLines, Atmospheres, and ObservedSpectra) filled to the brim with useful data.
5) Start up python
6) run example.py<commit_msg>updated link<commit_after># MoogPy
Python-Fortran hybrid version of MOOG spectral synthesis code


# Installation
1) fork the repository
2) ensure that MoogPy/MoogTools/ is in your PYTHONPATH, or otherwise visible from your python session
3) enter the MoogPy/MoogSource/ directory, run the recompile.sh script.  This will compile the FORTRAN part of Moog, wrap it in python, and copy the MoogPy.so file to the MoogPy/MoogTools/ directory
4) Download the MoogPyData.tar.gz file from http://www.mpia.de/~deen/Software/MoogPy/MoogPy.html, place it in the MoogPy/data/ directory, and unzip it.  It should create 3 directories (AbsorptionLines, Atmospheres, and ObservedSpectra) filled to the brim with useful data.
5) Start up python
6) run example.py
{'fraction_non_alphanumeric': 0.06595602931379081, 'fraction_numerical': 0.009327115256495669, 'mean_word_length': 4.754789272030651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1478451', 'n_tokens_mistral': 475, 'n_tokens_neox': 452, 'n_words': 198}