Skip to content

Major Refactoring#249

Merged
chinmayshah99 merged 66 commits intodevfrom
test-capi
Aug 17, 2020
Merged

Major Refactoring#249
chinmayshah99 merged 66 commits intodevfrom
test-capi

Conversation

@chinmayshah99
Copy link
Copy Markdown
Member

@chinmayshah99 chinmayshah99 commented Aug 16, 2020

Description

This is major refactoring of this library.
We have managed to

  • completely got rid of the C API architecture
  • added Python code thus allowing easy integration w/ other python code.
  • added doc strings
  • mypy support
  • moving of modules to a more intuitive manner into three sub-modules
  • moving of some tests to skip while we fix them

Fixes #150

Affected Dependencies

  • The DP submodule is upgraded to the latest SHA

How has this been tested?

  • make tests passes

Checklist

alejandrosame and others added 30 commits August 5, 2020 19:10
[WIP] Refactoring: Bounded functions
[WIP] Added a more compact name and type lookup.
added more epsilon property amd budget
Added error handing during initialization
[WIP] Refactoring: Bind extra methods
added error handling in partial result
[WIP] Refactoring: Generalise algorithm declaration
[WIP] Refactoring: Python interface
@chinmayshah99 chinmayshah99 added the Type: Refactor 🔨 A complete overhaul of a file, feature, or codebase label Aug 16, 2020
Comment thread pydp/algorithms/laplacian/_bounded_algorithms.py Outdated
Comment thread tests/base/test_percentile.py Outdated
Comment thread pydp/algorithms/_algorithm.py Outdated
alejandrosame
alejandrosame previously approved these changes Aug 16, 2020
Copy link
Copy Markdown
Member

@alejandrosame alejandrosame left a comment

Choose a reason for hiding this comment

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

I mostly noticed typos that didn't catch my eye while coding and checking previous PRs. I guess other reviewers could have more structural comments!

Comment thread pydp/algorithms/laplacian/_bounded_algorithms.py Outdated
alejandrosame
alejandrosame previously approved these changes Aug 17, 2020
Copy link
Copy Markdown
Member

@alejandrosame alejandrosame left a comment

Choose a reason for hiding this comment

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

I catched a minor typo after the last changes, but otherwise it LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Refactor 🔨 A complete overhaul of a file, feature, or codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code duplication in C API

3 participants