-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
16 changed files
with
39 additions
and
86 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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ramannoodle | ||
=========== | ||
[![python](https://img.shields.io/badge/Python-3.12-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/license/mit) | ||
|
||
![Tests](reports/tests-badge.svg) | ||
|
||
|
||
`ramannoodle` helps you calculate Raman spectra quickly and efficiency based on VASP calculations. **This software is currently being completely overhauled.** Check out the `legacy` branch for the old (and functional!) version. |
This file was deleted.
Oops, something went wrong.
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,48 +0,0 @@ | ||
""" | ||
Sample includes: | ||
from dynamics import Phonons | ||
from dynamics import MDTrajectory | ||
from spectrum import RamanSpectrum | ||
from spectrum import VibrationalSpectrum | ||
from spectrometer import RamanSpectrometer | ||
from spectrometer import VibrationalSpectrometer | ||
from spectrum.phonons import PhononRamanSpectrum | ||
from spectrum.md import MDRamanSpectrum | ||
from polarizability import PolarizabilityModel | ||
from polarizability.taylor import LinearPolarizabilityModel | ||
Workflow: | ||
1. Create a Dynamics object from your simulations. | ||
2. Create an InterpolationPolarizabilityModel from your simulations. | ||
- Set up a Symmetry object from an OUTCAR | ||
- Set up a model for that symmetry | ||
- Insert DOF, a set of displacements and polarizabilities (e.g. +,-, | ||
polarizability_plus,polarizability_minus) | ||
- Check that displacements given are colinear. | ||
- That that the new displacements are orthogonal to all existing displacements | ||
- If checks are successful: | ||
- Generate all symmetry equivalent displacements. | ||
- Do sanity check to ensure we're still totally orthogonal | ||
- add interpolation and normalized dof displacements | ||
Run a virtual experiment | ||
- Specify RamanSettings (angle, polycrystalline) | ||
- dynamics.get_spectrum(PolarizabilityModel, SpectrometerSettings) -> RamanSpectrum | ||
Extract Relevant information from RamanSpectrum | ||
- Spectrum.get_intensities(temperature, correction factors, smearing, etc.) | ||
- Spectrum.get_wavenumbers() | ||
- | ||
For now, I will not implement SpectrometerSettings. This can wait. | ||
""" | ||
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
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
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
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,7 +1,5 @@ | ||
"""Spectra.""" | ||
|
||
from abc import ABC, abstractmethod | ||
|
||
import numpy as np | ||
from numpy.typing import NDArray | ||
|
||
|
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="23" time="49.055" timestamp="2024-07-28T20:57:27.535556-07:00" hostname="edna.local"><testcase classname="test.tests.test_polarizability" name="test_are_collinear[vector_10-vector_20-False]" time="0.001" /><testcase classname="test.tests.test_polarizability" name="test_are_collinear[vector_11-vector_21-False]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_are_collinear[vector_12-vector_22-True]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_are_collinear[vector_13-vector_23-False]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_check_orthogonal[vector_10-vectors0-2]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_check_orthogonal[vector_11-vectors1--1]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_structural_symmetry[test/data/TiO2_OUTCAR-2-36-known_displacements_shape0]" time="20.316" /><testcase classname="test.tests.test_polarizability" name="test_structural_symmetry[test/data/STO_RATTLED_OUTCAR-135-1-known_displacements_shape1]" time="0.112" /><testcase classname="test.tests.test_polarizability" name="test_structural_symmetry[test/data/LLZO_OUTCAR-9-32-known_displacements_shape2]" time="7.008" /><testcase classname="test.tests.test_polarizability" name="test_get_fractional_positions_permutation_matrix[reference0-permuted0-known0]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_find_duplicates[vectors0-None]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_find_duplicates[vectors1--0.05]" time="0.000" /><testcase classname="test.tests.test_polarizability" name="test_add_dof[test/data/STO_RATTLED_OUTCAR-0-magnitudes0-1]" time="0.114" /><testcase classname="test.tests.test_polarizability" name="test_add_dof[test/data/TiO2_OUTCAR-0-magnitudes1-72]" time="20.385" /><testcase classname="test.tests.test_vasp" name="test_load_phonons_from_outcar[test/data/TiO2_OUTCAR-108-known_wavenumbers0-known_first_displacement0-known_last_displacement0]" time="0.037" /><testcase classname="test.tests.test_vasp" name="test_get_atomic_symbol_from_potcar_line[ POTCAR: PAW_PBE Ti_pv 07Sep2000\n-Ti]" time="0.000" /><testcase classname="test.tests.test_vasp" name="test_get_atomic_symbol_from_potcar_line[ POTCAR: PAW_PBE O 08Apr2002 \n-O]" time="0.000" /><testcase classname="test.tests.test_vasp" name="test_read_atomic_symbols_from_outcar[test/data/TiO2_OUTCAR-known0]" time="0.000" /><testcase classname="test.tests.test_vasp" name="test_read_cartesian_positions_from_outcar[test/data/EPS_OUTCAR-known_first_position0-known_last_position0]" time="0.001" /><testcase classname="test.tests.test_vasp" name="test_read_fractional_positions_from_outcar[test/data/EPS_OUTCAR-known_first_position0-known_last_position0]" time="0.000" /><testcase classname="test.tests.test_vasp" name="test_read_polarizability_from_outcar[test/data/EPS_OUTCAR-known_polarizability0]" time="0.001" /><testcase classname="test.tests.test_vasp" name="test_read_lattice_from_outcar[test/data/TiO2_OUTCAR-known_lattice0]" time="0.000" /><testcase classname="test.tests.test_vasp" name="test_read_lattice_from_outcar[test/data/EPS_OUTCAR-known_lattice1]" time="0.000" /></testsuite></testsuites> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 +1,4 @@ | ||
flake8 | ||
numpy | ||
pre-commit | ||
pylint | ||
|
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