Skip to content

Commit

Permalink
ci: install lme4
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 13, 2024
1 parent c5ee9a5 commit 91342d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
run: |
pip install -e .[all]
pip install -r tests/requirements.txt
python -c "from dclab.lme4 import rsetup; rsetup.require_lme4()"
- name: Install dclab with DCOR dependencies
if: matrix.extras == 'dcor-s3'
run: |
Expand Down
8 changes: 3 additions & 5 deletions dclab/lme4/wrapr.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""R lme4 wrapper"""
import logging
import numbers
import pathlib
import tempfile
import warnings

import importlib_resources
import numpy as np
Expand All @@ -13,8 +13,7 @@
from . import rsetup


class Lme4InstallWarning(UserWarning):
pass
logger = logging.getLogger(__name__)


class Rlme4(object):
Expand Down Expand Up @@ -44,8 +43,7 @@ def __init__(self, model="lmer", feature="deform"):

# Make sure that lme4 is available
if not rsetup.has_lme4():
warnings.warn("Installing lme4, this may take a while!",
Lme4InstallWarning)
logger.info("Installing lme4, this may take a while!")
rsetup.require_lme4()

def add_dataset(self, ds, group, repetition):
Expand Down

0 comments on commit 91342d7

Please sign in to comment.