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

Update pandas>2 and networkx>3 for simulation module and some unit tests #71

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

d-vct
Copy link
Contributor

@d-vct d-vct commented Jul 19, 2024

Update causallib simulation module (CausalSimulator3) to allow newer version of its dependencies: pandas>2 and networkx>3
Unit tests to test different link types: affine, poly, exp and log
Unit test for effect modifier in marginal structural model: check that covariates have the same linking_coefs for the potential outcomes and effect modifiers have different ones

---------

Signed-off-by: Diane Vincent <diane.vincent78@gmail.com>
Different link types:
- test_affine_linking
- test_poly_linking
- test_exp_linking
- test_log_linking

Effect modifier: check that it behaves correctly
with marginal structural model
- test_effect_modifier
@CLAassistant
Copy link

CLAassistant commented Jul 19, 2024

CLA assistant check
All committers have signed the CLA.

ehudkr and others added 2 commits July 21, 2024 17:14
It seems forked-branch pull-request do not initiate CodeClimate
properly, causing the entire PR look like it failed.
The problem is that the forked PR doesn't have access to the
upstream's secret, so CodeClimate doesn't have its token:
https://github.com/BiomedSciAI/causallib/actions/runs/10010566187/job/27714442507?pr=71#step:8:17

Before I contemplate whether to make that not-really-secret secret
a hardcoded token instead,
I want to test whether making a dummy commit by a permitted account
could make it run properly.

Signed-off-by: Ehud-Karavani <ehud.karavani@ibm.com>
Copy link
Collaborator

@ehudkr ehudkr left a comment

Choose a reason for hiding this comment

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

LGTM
thanks for catching stuff I missed at #65

Forked PRs have no access to secrets,
so uploading a coverage report to Code Climate can fail
as no token will be provided.

To avoid that failing the entire workflow,
try to make that step optional and see what happens on
Github Actions.

Signed-off-by: Ehud-Karavani <ehud.karavani@ibm.com>
@ehudkr ehudkr merged commit 52ba5ea into BiomedSciAI:master Jul 31, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

4 participants