Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nentries missing in Data #657

@acampove

Description

@acampove

Bugs Please fill the below form if possible.

In the latest documentation I read:

Image

Current Behaviour

import zfit
import numpy as np

obs = zfit.Space('x', limits=(0, 10))
data_array = np.random.normal(loc=5, scale=1, size=1000)
data = zfit.Data.from_numpy(obs=obs, array=data_array)

print(data.nentries)
print(data.nevents)

the first one fails, the second one works.

Expected Behaviour

Context (Environment)

Both lines should work

  • zfit version:
  • Python version: 0.27.1
  • Are you using conda, pipenv, etc? : micromamba
  • Operating System: AlmaLinux9
  • Tensorflow version: 2.19.0

Possible Solution/Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions