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

Renaming metaclasses to metaclass #36

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion model/src/pyrenew/latent/hospitaladmissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpyro.distributions as dist
from numpy.typing import ArrayLike
from pyrenew.distutil import validate_discrete_dist_vector
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable

HospAdmissionsSample = namedtuple(
"HospAdmissionsSample",
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/latent/infections.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
reverse_discrete_dist_vector,
validate_discrete_dist_vector,
)
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable

InfectionsSample = namedtuple(
"InfectionsSample",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

"""
Observation helper classes
pyrenew helper classes
"""

from abc import ABCMeta, abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/model/hospitalizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections import namedtuple

from pyrenew.metaclasses import Model, RandomVariable, _assert_sample_and_rtype
from pyrenew.metaclass import Model, RandomVariable, _assert_sample_and_rtype
from pyrenew.model.rtinfectionsrenewal import RtInfectionsRenewalModel
from pyrenew.process import RtRandomWalkProcess

Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/model/rtinfectionsrenewal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections import namedtuple

from pyrenew.metaclasses import Model, RandomVariable, _assert_sample_and_rtype
from pyrenew.metaclass import Model, RandomVariable, _assert_sample_and_rtype
from pyrenew.process import RtRandomWalkProcess

# Output class of the RtInfectionsRenewalModel
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/observation/negativebinomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpyro
import numpyro.distributions as dist
from numpy.typing import ArrayLike
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable


class NegativeBinomialObservation(RandomVariable):
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/observation/poisson.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpyro
import numpyro.distributions as dist
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable


class PoissonObservation(RandomVariable):
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/process/ar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpyro.distributions as dist
from jax import lax
from numpy.typing import ArrayLike
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable


class ARProcess(RandomVariable):
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/process/firstdifferencear.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import jax.numpy as jnp
from numpy.typing import ArrayLike
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable
from pyrenew.process import ARProcess


Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/process/rtrandomwalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpyro as npro
import numpyro.distributions as dist
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable
from pyrenew.process.simplerandomwalk import SimpleRandomWalkProcess
from pyrenew.transform import AbstractTransform, LogTransform

Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/process/simplerandomwalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import jax.numpy as jnp
import numpyro as npro
import numpyro.distributions as dist
from pyrenew.metaclasses import RandomVariable
from pyrenew.metaclass import RandomVariable


class SimpleRandomWalkProcess(RandomVariable):
Expand Down