Skip to content

Commit

Permalink
added option to install material data in setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jashcraf committed Dec 22, 2023
1 parent ac0848c commit 538268f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions poke/materials.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
from scipy.interpolate import interp1d
from pathlib import Path
import poke.materials as matdata

# Silica == Fused Silica
avail_materials = ['Al','Ag', # metals
Expand All @@ -12,7 +11,7 @@
]

def get_abs_path(file):
fullpth = Path(__file__).parent/'poke'/'material_data'/file
fullpth = Path(__file__).parent/'material_data'/file
return fullpth


Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ install_requires =
python_requires = >= 3.8
setup_requires = setuptools_scm
[options.package_data]
poke = material_data/*.csv

0 comments on commit 538268f

Please sign in to comment.