Skip to content

Commit 514f774

Browse files
author
Kyle Beyer
committed
cleanup and fmt
1 parent 754a087 commit 514f774

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/exfor_tools/exfor_tools.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def sort_measurement_list(measurements, min_num_pts=5):
8484
[m.data] + [measurements_sorted[i + j].data for j in range(1, c)]
8585
)
8686

87-
# re-sort data by anglwe
87+
# re-sort data by angle
8888
data = data[:, data[0, :].argsort()]
8989

9090
measurements_condensed.append(
@@ -103,9 +103,9 @@ def sort_measurement_list(measurements, min_num_pts=5):
103103

104104
def sort_measurements_by_energy(all_entries, min_num_pts=5):
105105
r"""
106-
Given a dictionary form EXFOR entry number to ExforDifferentialData, grabs all
107-
the ExforDifferentialDataSet's and sorts them by energy, concatenating ones
108-
that are at the same energy
106+
Given a dictionary form EXFOR entry number to ExforDifferentialData, grabs all
107+
the ExforDifferentialDataSet's and sorts them by energy, concatenating ones
108+
that are at the same energy
109109
"""
110110
measurements = []
111111
for entry, data in all_entries.items():
@@ -412,10 +412,10 @@ def plot_experiment(
412412
# plot each measurement and add a label
413413
for offset, m in zip(offsets, measurements):
414414
# copy the data into a big as hell float to handle big offsets
415-
x = np.copy(m.data[0, :]).astype(np.longdouble)
416-
dx = np.copy(m.data[1, :]).astype(np.longdouble)
417-
y = np.copy(m.data[2, :]).astype(np.longdouble)
418-
dy = np.copy(m.data[3, :]).astype(np.longdouble)
415+
x = np.copy(m.data[0, :])
416+
dx = np.copy(m.data[1, :])
417+
y = np.copy(m.data[2, :])
418+
dy = np.copy(m.data[3, :])
419419
if log:
420420
y *= offset
421421
dy *= offset

0 commit comments

Comments
 (0)