Skip to content

Commit 903efdb

Browse files
committed
set default min_num_anlges to 1
1 parent 0cf9da3 commit 903efdb

2 files changed

Lines changed: 1 addition & 31 deletions

File tree

examples/dataset_curation_tutorial.ipynb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,33 +51,6 @@
5151
"from jitr.reactions import reaction"
5252
]
5353
},
54-
{
55-
"cell_type": "code",
56-
"execution_count": 4,
57-
"id": "ca35f75b-3d59-4c37-8d2b-d7b808e8c3ec",
58-
"metadata": {},
59-
"outputs": [
60-
{
61-
"name": "stdout",
62-
"output_type": "stream",
63-
"text": [
64-
"Found subentry E1677016 with the following columns:\n",
65-
"['EN', 'ANG-CM', 'DATA', '+DATA-ERR', '-DATA-ERR']\n"
66-
]
67-
}
68-
],
69-
"source": [
70-
"entry = ExforEntry(\n",
71-
" entry=\"E1677\",\n",
72-
" reaction=reaction.ElasticReaction(\n",
73-
" target=(40,20),\n",
74-
" projectile=(1,1)\n",
75-
" ),\n",
76-
" quantity=\"dXS/dRuth\",\n",
77-
" vocal=True\n",
78-
")"
79-
]
80-
},
8154
{
8255
"cell_type": "code",
8356
"execution_count": 5,

src/exfor_tools/exfor_entry.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def attempt_parse_subentry(MeasurementClass, *args, **kwargs):
3030
return measurements, dict(failed_parses)
3131

3232

33-
def filter_subentries_energy(data_set, min_num_pts=4, **kwargs):
33+
def filter_subentries_energy(data_set, min_num_pts=1, **kwargs):
3434
return data_set.numrows() >= min_num_pts
3535

3636

@@ -111,9 +111,6 @@ def __init__(
111111
filter_kwargs={},
112112
):
113113
r""" """
114-
if "min_num_pts" not in filter_kwargs:
115-
filter_kwargs["min_num_pts"] = 4
116-
117114
self.vocal = vocal
118115
self.entry = entry
119116
self.reaction = reaction

0 commit comments

Comments
 (0)