-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use package-local wrapper type instead of extending Base (or other packages') methods on DataFrame #67
Comments
@mykelk - maybe this can be delegated to another SISLer? |
@hamzaelsaawy said he can handle these issues. |
Yep these have all come up in past discussions, probably easier to track all in one place though rather than a bit scattered |
dwijenchawra
added a commit
to dwijenchawra/BayesNets.jl
that referenced
this issue
Jun 27, 2021
dwijenchawra
added a commit
to dwijenchawra/BayesNets.jl
that referenced
this issue
Jun 27, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since https://github.com/sisl/BayesNets.jl/blob/5febf756d38194712cfb8c0c2294252931611afa/src/DiscreteBayesNet/tables.jl does a
const Table = DataFrame
, all method extensions onTable
are global and change the behavior of other unrelated code that uses DataFrames, just from importing BayesNets whether or not it's using this package. This is discouraged.If
Table
were instead a wrapper struct that delegated the relevant operations to a single DataFrame field, then you could define methods onBayesNets.Table
however you like and not be at risk of changing any other code's behavior.Same issue with
BayesNets.jl/src/ProbabilisticGraphicalModels/assignments.jl
Line 7 in 5febf75
BayesNets.jl/src/ProbabilisticGraphicalModels/nodenames.jl
Line 5 in 5febf75
and 3cd56dc#commitcomment-22494521 should probably be submitted upstream in DataFrames?
The text was updated successfully, but these errors were encountered: