Import Batch Configuration

When importing batches of alphaMELTS experiments which have been run using the pyrolite_meltsutil.automation interface, you can also import the batch configuration file which contains the index of hashes, names, configurations and the environment for the experiments. This can be handy to refer back to when automatically visualising or searching through your experiments.

First let’s find a folder with some results. In this case we’ll use one of the pyrolite-meltsutil example folders which already contains some batch experiment results:

from pyrolite_meltsutil.util.general import get_data_example

experiment_dir = get_data_example("batch")

Now we can import the configuration file and explore it’s contents:

from pyrolite_meltsutil.tables.load import import_batch_config

cfg = import_batch_config(experiment_dir)

The configuration is imported as a dictionary, with keys which correspond to experiment hashes, which should line up with the experiment folders:

cfg.keys()
dict_keys(['363f3d0a0b', '4689ca6fc3'])

The values of the dictionary are tuples containing the experiment title, meltsfile configuration and the environment:

exp_name, exp_cfg, exp_env = cfg["363f3d0a0b"]
'Gale2013MORBisobarfrac5-5kbar1300-800CFMQ363f3d0a0b'
{'Initial Temperature': 1300, 'Final Temperature': 800, 'modes': ['isobaric', 'fractionate solids'], 'Initial Pressure': 5000, 'Log fO2 Path': 'FMQ', 'SiO2': 50.41, 'Al2O3': 14.95, 'FeO': 10.07, 'MnO': 0.173, 'MgO': 7.69, 'CaO': 11.35, 'Na2O': 2.76, 'TiO2': 1.54, 'K2O': 0.144, 'P2O5': 0.169, 'Title': 'Gale2013MORB', 'Final Pressure': 5000, 'Increment Temperature': -5, 'Increment Pressure': 0}
{'VERSION': 'MELTS', 'MODE': 'isobaric', 'DELTAP': 0.0, 'DELTAT': -10.0, 'MAXP': 10000.0, 'MINP': 5000.0, 'MAXT': 1500.0, 'MINT': 500.0, 'MINF': 0.005, 'MASSIN': 0.001, 'MGO_TARGET': 8.0, 'DRY_ITER_PATIENCE': 100, 'HK_PXGT_TRACE_H2O': True, 'FAILED_ITER_PATIENCE': 10}

Total running time of the script: (0 minutes 0.002 seconds)

Gallery generated by Sphinx-Gallery