From aa0cbc4e8c770c2af844badc2b458acc8d677e54 Mon Sep 17 00:00:00 2001 From: Omar Ashour Date: Thu, 2 May 2024 19:51:24 -0700 Subject: [PATCH] Clean cruft --- .gitignore | 1 + README.md | 2 +- pyproject.toml | 6 +++--- run.py | 46 ---------------------------------------------- 4 files changed, 5 insertions(+), 50 deletions(-) delete mode 100644 run.py diff --git a/.gitignore b/.gitignore index e3d989b..5fc7a3b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ VBT.vasp VBTS_mdm.h5 hcp_He_lsm.h5 venv/** +dm.py diff --git a/README.md b/README.md index cdbb578..032451e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# DarkMAGIC +# DarkMAGIC 🔮 [![Develop Docs](https://img.shields.io/badge/status-pre--alpha-red)](https://oashour.github.io/DarkMAGIC/develop/) ![Tests](https://github.com/oashour/DarkMAGIC/actions/workflows/run_tests.yaml/badge.svg) [![License](https://img.shields.io/badge/License-MIT-blue)](#license "Go to license section") diff --git a/pyproject.toml b/pyproject.toml index 0fee1fc..805f403 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,10 +3,10 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] -name = "dark-magic" -version = "0.0.1" +name = "darkmagic" +version = "0.0.2" authors = [{ name = "Omar A. Ashour", email = "ashour@berkeley.edu" }] -description = "Dark Matter Ab initio maGnon/phonon Interaction Calculator (DarkMAGIC) is a python package for computing DM interaction rates with collective excitations based on ab initio calculations of material properties." +description = "The Dark Matter Ab initio maGnon/phonon Interaction Calculator (DarkMAGIC) is a python package for computing DM interaction rates with collective excitations based on ab initio calculations of material properties." readme = "README.md" requires-python = ">=3.10" dependencies = [ diff --git a/run.py b/run.py deleted file mode 100644 index 05b56b8..0000000 --- a/run.py +++ /dev/null @@ -1,46 +0,0 @@ -import numpy as np - -# from mpi4py.MPI import COMM_WORLD as comm -from darkmagic import MaterialParameters, PhononMaterial - -# Get the example material and model -from darkmagic.benchmark_models import ( - heavy_scalar_mediator, - light_scalar_mediator, -) - -# magnetic_dipole, -from darkmagic.calculator import Calculator - -# from darkmagic.materials.VBTS_Magnon import get_material -from darkmagic.numerics import Numerics - -# Masses and times -masses = np.logspace(4, 10, 96) -# masses = [1e5, 1e7] -times = [0] - -# Phonons in Helium -params = MaterialParameters(N={"e": [2, 2], "n": [2, 2], "p": [2, 2]}) -material = PhononMaterial("hcp_He", params, "tests/data/hcp_He_1GPa.phonopy.yaml") -model = light_scalar_mediator -model = heavy_scalar_mediator - -# Magnons in VBTS -# material = get_material() -# model = magnetic_dipole - -# Numerics -numerics = Numerics( - N_grid=[80, 40, 40], - N_DWF_grid=[30, 30, 30], - use_special_mesh=False, - use_q_cut=True, -) -# hdf5_filename = f"out/DarkMAGIC_{material.name}_{model.shortname}_whatever.hdf5" -full_calc = Calculator("scattering", masses, material, model, numerics, times) -full_calc.evaluate() -full_calc.to_file() - -# main(material, model, numerics, masses, times, hdf5_filename) -print("actually done")