Skip to content

Commit 0a072ed

Browse files
authored
Merge pull request #11 from Taimin/master
Debugging and add dependencies
2 parents e12f926 + 0d56062 commit 0a072ed

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

edtools/scattering_factor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import numpy as np
66
import pandas as pd
77
import tkinter as tk
8+
from pathlib import Path
89
from tkinter import *
910
from tkinter.ttk import *
1011

@@ -14,6 +15,8 @@
1415
from matplotlib.figure import Figure
1516
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk
1617

18+
atomlib = Path(__file__).parent / "atomlib.yaml"
19+
1720
FitResult_4p = namedtuple('FitResult_4p', 'a0 b0 a1 b1 a2 b2 a3 b3 c'.split())
1821
FitResult_5p = namedtuple('FitResult_5p', 'a0 b0 a1 b1 a2 b2 a3 b3 a4 b4 c'.split())
1922

@@ -573,7 +576,7 @@ def __init__(self, parent):
573576
frame.pack(side='top', fill='x', expand=False, padx=5, pady=5)
574577

575578
def init_vars(self):
576-
with open('atomlib.yaml', 'r') as f:
579+
with open(atomlib, 'r') as f:
577580
self.scat_factor_lib = yaml.load(f, Loader=yaml.Loader)
578581

579582
self.element = ""

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
'numpy==1.*,>=1.18.2',
6464
'pandas==1.*,>=1.0.3',
6565
'scipy==1.*,>=1.4.1',
66-
'uncertainties==3.*,>=3.1.2'],
66+
'uncertainties==3.*,>=3.1.2',
67+
'lmfit>=1.0.0'],
6768
extras_require={
6869
'dev': [
6970
'check-manifest',

0 commit comments

Comments
 (0)