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

Towards better inference: bits → nibbles #3808

Draft
wants to merge 60 commits into
base: main
Choose a base branch
from
Draft

Conversation

originalsouth
Copy link
Contributor

@originalsouth originalsouth commented Nov 6, 2024

Changes

Bits → Nibbles

Issue link

N/A

Demo

T.B.D.

QA notes

T.B.D.


Code Checklist

  • All the commits in this PR are properly PGP-signed and verified.
  • This PR only contains functionality relevant to the issue.
  • I have written unit tests for the changes or fixes I made.
  • I have checked the documentation and made changes where necessary.
  • I have performed a self-review of my code and refactored it to the best of my abilities.
  • Tickets have been created for newly discovered issues.
  • For any non-trivial functionality, I have added integration and/or end-to-end tests.
  • I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
  • I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.

Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

originalsouth and others added 30 commits August 27, 2024 09:31
…uler from recreating already deleted oois trhough affirmations
…cheduler_from_reacreating_already_deleted_oois_through_affirmations' into feature/nibbles
@originalsouth originalsouth added octopoes Issues related to octopoes bits labels Nov 6, 2024
@originalsouth originalsouth changed the title Better inference: bits → nibbles Towards better inference: bits → nibbles Nov 6, 2024
Copy link
Contributor

@ammar92 ammar92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I've provided mostly Python related feedback since I missed the discussion about Nibbles. I'd love to know more about it, why is it better than bits, and what are the main differences? Perhaps we can meet offline for coffee soon?

octopoes/nibbles/definitions.py Outdated Show resolved Hide resolved
octopoes/nibbles/definitions.py Outdated Show resolved Hide resolved
return hash(str(self.ooi_type) + self.relation_path if self.relation_path else "\0")


class NibbleDefinition:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering, what is the reason this isn't implemented as an e.g. Pydantic class but instead as a POJO-like class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow the Pydantic class does not work well with the importlib yielding the payload... not sure why but it fixed the issues so I moved on -- perhaps hoping one day you would fix it ;)

octopoes/nibbles/runner.py Outdated Show resolved Hide resolved
octopoes/nibbles/runner.py Outdated Show resolved Hide resolved
octopoes/tests/integration/test_nibbles.py Outdated Show resolved Hide resolved
octopoes/tests/integration/test_nibbles.py Outdated Show resolved Hide resolved
octopoes/nibbles/runner.py Outdated Show resolved Hide resolved
octopoes/nibbles/runner.py Outdated Show resolved Hide resolved
octopoes/nibbles/runner.py Outdated Show resolved Hide resolved
@originalsouth originalsouth removed their assignment Nov 13, 2024
Copy link

sonarcloud bot commented Nov 18, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
30.9% Coverage on New Code (required ≥ 80%)
8.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bits octopoes Issues related to octopoes
Projects
Status: To be discussed
Development

Successfully merging this pull request may close these issues.

4 participants