glasspy package
Subpackages
- glasspy.chemistry package
- glasspy.data package
- glasspy.predict package
- Submodules
- glasspy.predict.base module
DomainMLPMLP.configure_optimizers()MLP.distance_from_training()MLP.domainMLP.forward()MLP.from_file()MLP.get_test_dataset()MLP.get_training_dataset()MLP.is_within_domain()MLP.learning_curve_trainMLP.learning_curve_valMLP.load_training()MLP.on_train_epoch_end()MLP.on_validation_epoch_end()MLP.predict()MLP.save_training()MLP.test_step()MLP.training_step()MLP.validation_step()
MTLPredict
- glasspy.predict.models module
- Module contents
- glasspy.viscosity package
Submodules
glasspy.utils module
- glasspy.utils.get_from_zenodo(ID, filename, savepath, verbose=True)
Download a single file from a Zenodo repository.
Skips the download if the file already exists at the given path. Files are streamed in chunks to handle large downloads efficiently.
- Parameters:
ID (str or int) – Zenodo record ID. Found in the record’s URL, e.g., zenodo.org/records/1234567 → ID is 1234567.
filename (str) – Name of the file to download from the record.
savepath (str or Path) – Local path where the file will be saved.
verbose (bool, optional) – If True, prints progress messages during the download. Defaults to True.
- Returns:
- Returns immediately without downloading if the file already exists
at savepath.
- Return type:
None
- Raises:
requests.exceptions.HTTPError – If the HTTP request to Zenodo returns an error status code.
StopIteration – If no file matching filename is found in the record.
Module contents
- glasspy.initial_config()