Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing BlockPurging -> stats results in AttributeError #19

Closed
mrckzgl opened this issue Apr 10, 2024 · 2 comments
Closed

Executing BlockPurging -> stats results in AttributeError #19

mrckzgl opened this issue Apr 10, 2024 · 2 comments
Assignees

Comments

@mrckzgl
Copy link

mrckzgl commented Apr 10, 2024

Consider following example code

data = Data(
    dataset_1=d1,
    id_column_name_1='id',
    ground_truth=gt,
    attributes_1=attr
)
bb = QGramsBlocking()
blocks = bb.build_blocks(data)
bp = BlockPurging()
blocks = bp.process(blocks, data, tqdm_disable=False)
bp.stats(blocks)

This results in:

Traceback (most recent call last):
  File "[REDACTED]/jedi_er.py", line 43, in <module>
    bp.stats(blocks)
  File "[REDACTED]/.local/lib/python3.10/site-packages/pyjedai/block_building.py", line 181, in stats
    "\n\tNumber of blocks dropped: " + str(self.num_of_blocks_dropped) +
AttributeError: 'BlockPurging' object has no attribute 'num_of_blocks_dropped'

best

@Nikoletos-K Nikoletos-K self-assigned this Apr 10, 2024
@Nikoletos-K
Copy link
Member

It has been corrected at dev-stage and will be published in the next release.

Thanks for the feedback!

Nikoletos-K added a commit that referenced this issue Apr 24, 2024
@Nikoletos-K
Copy link
Member

It has been fixed in the new release.

Cheers,
Konstantinos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants