<jupyter_start><jupyter_text>Using the GrainSizeTools script with Jupyter notebooks: a simple example<jupyter_code># Set the inline mode for plots and run the script
%matplotlib inline
%run .../grain_size_tools/GrainSizeTools_script.py
areas = extract_column(file_path='.../data_set.txt')
diameters = area2diameter(areas, 0.5)
calc_grain_size(diameters, plot='lin')
Saltykov(diameters, numbins=15)
calc_shape(diameters)
calc_diffstress(32, phase='quartz', piezometer='Stipp_Tullis')<jupyter_output>differential stress = 43.29 MPa
Ensure that you entered the apparent grain size as the root mean square (RMS)!
{'fraction_non_alphanumeric': 0.10032894736842106, 'fraction_numerical': 0.018092105263157895, 'mean_word_length': 7.7, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '501596', 'license': 'Apache-2.0', 'n_tokens_mistral': 228, 'n_tokens_neox': 210, 'n_words': 54, 'path': 'DOCS/JN_example.ipynb', 'repo_name': 'jwestraadt/GrainSizeTools', 'size': '608'}