<jupyter_start><jupyter_text>Reading isothermsThe first thing to do is to read previously created isotherms. Example data can be found in the [data](https://github.com/pauliacomi/pyGAPS/tree/master/docs/examples/data) directory, saved in the pyGAPS JSON format, which we will now open. First, we'll do the necessary top-level imports for the session.<jupyter_code>from pathlib import Path
import matplotlib.pyplot as plt
import pygaps

json_path = Path.cwd() / 'data'<jupyter_output><empty_output><jupyter_text>Then we'll import the json files, one-by-one by using the `isotherm_from_json` method which reads an isotherm from a file (or a string). There are three folders:- One containing nitrogen adsorption data at 77 kelvin- Another with room-temperature adsorption of $CO_2$ combined with microcalorimetry- Some room-temperature isotherms which we will use for IAST calculations- Finally a set of isotherms with $C_4H_{10}$ at different temperature, for isosteric enthalpy calculations<jupyter_code># Get the nitrogen data at 77 kelvin
isotherms_n2_77k_paths = list(Path(json_path / 'characterisation').rglob("*.json" ))
isotherms_n2_77k = []
for filepath in isotherms_n2_77k_paths:
    isotherms_n2_77k.append(pygaps.isotherm_from_json(filepath))
        
print('Selected', len(isotherms_n2_77k), 'isotherms with nitrogen at 77K')
# Get the combined isotherm-calorimetry data
isotherms_calorimetry_paths = list(Path(json_path / 'calorimetry').rglob("*.json" ))
isotherms_calorimetry = []
for filepath in isotherms_calorimetry_paths:
    isotherms_calorimetry.append(pygaps.isotherm_from_json(filepath))
        
print('Selected', len(isotherms_calorimetry), 'room temperature calorimetry isotherms')
# Get the isotherms for IAST calculations
isotherms_iast_paths = list(Path(json_path / 'iast').rglob("*.json" ))
isotherms_iast = []
for filepath in isotherms_iast_paths:
    isotherms_iast.append(pygaps.isotherm_from_json(filepath))
        
print('Selected', len(isotherms_iast), 'isotherms for IAST calculation')
# Get the isotherms for isosteric enthalpy calculations
isotherms_isosteric_paths = list(Path(json_path / 'isosteric').rglob("*.json" ))
isotherms_isosteric = []
for filepath in isotherms_isosteric_paths:
    isotherms_isosteric.append(pygaps.isotherm_from_json(filepath))
        
print('Selected', len(isotherms_isosteric), 'isotherms for isosteric enthalpy calculation')<jupyter_output>Selected 3 isotherms for isosteric enthalpy calculation
{'fraction_non_alphanumeric': 0.0872210953346856, 'fraction_numerical': 0.010547667342799188, 'mean_word_length': 6.295857988165681, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '541831', 'license': 'MIT', 'n_tokens_mistral': 842, 'n_tokens_neox': 797, 'n_words': 213, 'path': 'docs/examples/import.ipynb', 'repo_name': 'pauliacomi/pyGAPS', 'size': '2465'}