Skip to content

Commit 2f57092

Browse files
committed
fix: remove old legacy arguments
1 parent ea30221 commit 2f57092

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

_website/tutorials/components/62 - Multidim Custom PDF.ipynb

+4-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
" _N_OBS = 3 # dimension, can be omitted\n",
4949
" _PARAMS = ['xshift', 'yshift'] # the name of the parameters\n",
5050
"\n",
51-
" @zfit.supports()\n",
52-
" def _unnormalized_pdf(self, x, params):\n",
51+
" @zfit.supports(norm=False)\n",
52+
" def _pdf(self, x,norm, params):\n",
5353
" x0 = x[0]\n",
5454
" x1 = x[1]\n",
5555
" x2 = x[2]\n",
@@ -81,7 +81,7 @@
8181
"obs = xobs * yobs * zobs\n",
8282
"\n",
8383
"data_np = np.random.random(size=(1000, 3))\n",
84-
"data = zfit.data.Data.from_numpy(array=data_np, obs=obs) # obs is automatically used as limits here."
84+
"data = zfit.Data(data=data_np, obs=obs) # obs is automatically used as limits here."
8585
]
8686
},
8787
{
@@ -176,8 +176,7 @@
176176
"source": [
177177
"AbsVectorShifted.register_analytic_integral(func=abs_vector_integral_from_any_to_any, limits=limits,\n",
178178
" priority=51,\n",
179-
" supports_norm_range=False, # False by default, but could be set to\n",
180-
" supports_multiple_limits=False) # True. False -> autohandled"
179+
" supports_norm=False)"
181180
]
182181
},
183182
{

components/62 - Multidim Custom PDF.ipynb

+4-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
" _N_OBS = 3 # dimension, can be omitted\n",
4949
" _PARAMS = ['xshift', 'yshift'] # the name of the parameters\n",
5050
"\n",
51-
" @zfit.supports()\n",
52-
" def _unnormalized_pdf(self, x, params):\n",
51+
" @zfit.supports(norm=False)\n",
52+
" def _pdf(self, x,norm, params):\n",
5353
" x0 = x[0]\n",
5454
" x1 = x[1]\n",
5555
" x2 = x[2]\n",
@@ -81,7 +81,7 @@
8181
"obs = xobs * yobs * zobs\n",
8282
"\n",
8383
"data_np = np.random.random(size=(1000, 3))\n",
84-
"data = zfit.data.Data.from_numpy(array=data_np, obs=obs) # obs is automatically used as limits here."
84+
"data = zfit.Data(data=data_np, obs=obs) # obs is automatically used as limits here."
8585
]
8686
},
8787
{
@@ -176,8 +176,7 @@
176176
"source": [
177177
"AbsVectorShifted.register_analytic_integral(func=abs_vector_integral_from_any_to_any, limits=limits,\n",
178178
" priority=51,\n",
179-
" supports_norm_range=False, # False by default, but could be set to\n",
180-
" supports_multiple_limits=False) # True. False -> autohandled"
179+
" supports_norm=False)"
181180
]
182181
},
183182
{

0 commit comments

Comments
 (0)