Skip to content

Commit 06daa46

Browse files
resolve conflicts
2 parents 8f349f3 + 1fc8aa3 commit 06daa46

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

news/compute_cve.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* polynomial interpolation as the default method for cve computation.
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/labpdfproc/functions.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ def _get_grid_points(self):
3838
self.grid = {(x, y) for x in xs for y in ys if x**2 + y**2 <= self.radius**2}
3939
self.total_points_in_grid = len(self.grid)
4040

41-
# def get_coordinate_index(self, coordinate): # I think we probably dont need this function?
42-
# count = 0
43-
# for i, target in enumerate(self.grid):
44-
# if coordinate == target:
45-
# return i
46-
# else:
47-
# count += 1
48-
# if count >= len(self.grid):
49-
# raise IndexError(f"WARNING: no coordinate {coordinate} found in coordinates list")
50-
5141
def set_distances_at_angle(self, angle):
5242
"""
5343
given an angle, set the distances from the grid points to the entry and exit coordinates

src/diffpy/labpdfproc/tools.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@ def set_wavelength(args):
110110
args argparse.Namespace
111111
the arguments from the parser
112112
113+
we raise a ValueError if the input wavelength is non-positive
114+
or if the input anode_type is not one of the known sources
115+
113116
Returns
114117
-------
115118
args argparse.Namespace
116-
117-
we raise an ValueError if the input wavelength is non-positive
118-
or if the input anode_type is not one of the known sources
119-
120119
"""
121120
if args.wavelength is not None and args.wavelength <= 0:
122121
raise ValueError(

0 commit comments

Comments
 (0)