generated from FAIRmat-NFDI/nomad-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e71217
commit f1f8f74
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
{"smiles":"C=Cc1ccc(COc2ccc(C(C)(C)c3ccc(O)cc3)cc2)cc1","doi":"https:\/\/doi.org\/10.1039\/D1TC05010A","compound_names":"[\"4-(2-(4-((4-Vinylbenzyl)oxy)phenyl)propan-2-yl)phenol\",\"4-(2-(4-((4-vinylbenzyl)oxy)phenyl)propan-2-yl)phenol\",\"Bisphenol A\",\"P4CzCN\u2013BCz\"]","phase":"{\"specifier\":\"solution\",\"host\":\"toluene\"}","photoluminescence_quantum_yield_value":null,"photoluminescence_quantum_yield_unit":null,"delayed_lifetime_value":null,"delayed_lifetime_unit":null,"peak_emission_wavelength_value":493.0,"peak_emission_wavelength_unit":"nm","singlet_triplet_energy_splitting_value":0.17,"singlet_triplet_energy_splitting_unit":"eV","host":"toluene","specifier":"solution","iupac_name":"4-(2-(4-((4-Vinylbenzyl)oxy)phenyl)propan-2-yl)phenol","abbreviated_name":"4-(2-(4-((4-vinylbenzyl)oxy)phenyl)propan-2-yl)phenol"} | ||
{ | ||
"smiles": "C=Cc1ccc(COc2ccc(C(C)(C)c3ccc(O)cc3)cc2)cc1", | ||
"doi": "https:\/\/doi.org\/10.1039\/D1TC05010A", | ||
"compound_names": "[\"4-(2-(4-((4-Vinylbenzyl)oxy)phenyl)propan-2-yl)phenol\",\"4-(2-(4-((4-vinylbenzyl)oxy)phenyl)propan-2-yl)phenol\",\"Bisphenol A\",\"P4CzCN\u2013BCz\"]", | ||
"phase": "{\"specifier\":\"solution\",\"host\":\"toluene\"}", | ||
"photoluminescence_quantum_yield_value": null, | ||
"photoluminescence_quantum_yield_unit": null, | ||
"delayed_lifetime_value": null, | ||
"delayed_lifetime_unit": null, | ||
"peak_emission_wavelength_value": 493.0, | ||
"peak_emission_wavelength_unit": "nm", | ||
"singlet_triplet_energy_splitting_value": 0.17, | ||
"singlet_triplet_energy_splitting_unit": "eV", | ||
"host": "toluene", | ||
"specifier": "solution", | ||
"iupac_name": "4-(2-(4-((4-Vinylbenzyl)oxy)phenyl)propan-2-yl)phenol", | ||
"abbreviated_name": "4-(2-(4-((4-vinylbenzyl)oxy)phenyl)propan-2-yl)phenol" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# ruff: noqa: PLR2004 | ||
import logging | ||
|
||
from nomad.datamodel import EntryArchive | ||
|
||
from nomad_tadf_molecules.parsers.tadf_molecules import TADFMoleculesParser | ||
|
||
|
||
def test_parse_file(): | ||
parser = TADFMoleculesParser() | ||
archive = EntryArchive() | ||
parser.parse('tests/data/molecule30.json', archive, logging.getLogger()) | ||
|
||
assert archive.data.photoluminescence_quantum_yield is None | ||
assert archive.data.peak_emission_wavelength.magnitude == 493.0 | ||
assert archive.data.delayed_lifetime is None | ||
assert archive.data.singlet_triplet_energy_splitting.magnitude == 0.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters