Skip to content

Commit

Permalink
Pre-CRN refactor cleanup (#272)
Browse files Browse the repository at this point in the history
* Do the large line change code movement ahead of the CRN algorithm refactor

* Couple of doc fixes
  • Loading branch information
collijk committed Feb 2, 2023
1 parent 8526845 commit cfc1243
Show file tree
Hide file tree
Showing 11 changed files with 298 additions and 306 deletions.
4 changes: 4 additions & 0 deletions docs/source/api_reference/framework/population/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
=====================
Population Management
=====================

.. automodule:: vivarium.framework.population

.. toctree::
Expand Down
1 change: 0 additions & 1 deletion docs/source/api_reference/framework/randomness/core.rst

This file was deleted.

4 changes: 4 additions & 0 deletions docs/source/api_reference/framework/randomness/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
========================
Random Number Generation
========================

.. automodule:: vivarium.framework.randomness

.. toctree::
Expand Down
9 changes: 6 additions & 3 deletions src/vivarium/framework/randomness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
can be used to create pseudo-random numbers in a repeatable manner.
For mor information, see the Common Random Numbers
For more information, see the Common Random Numbers
:ref:`concept note <crn_concept>`.
"""
from vivarium.framework.randomness.core import RESIDUAL_CHOICE, choice, get_hash, random
from vivarium.framework.randomness.exceptions import RandomnessError
from vivarium.framework.randomness.manager import RandomnessInterface, RandomnessManager
from vivarium.framework.randomness.stream import RandomnessStream
from vivarium.framework.randomness.stream import (
RESIDUAL_CHOICE,
RandomnessStream,
get_hash,
)
259 changes: 0 additions & 259 deletions src/vivarium/framework/randomness/core.py

This file was deleted.

3 changes: 1 addition & 2 deletions src/vivarium/framework/randomness/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"""
import pandas as pd

from vivarium.framework.randomness.core import get_hash
from vivarium.framework.randomness.exceptions import RandomnessError
from vivarium.framework.randomness.index_map import IndexMap
from vivarium.framework.randomness.stream import RandomnessStream
from vivarium.framework.randomness.stream import RandomnessStream, get_hash


class RandomnessManager:
Expand Down

0 comments on commit cfc1243

Please sign in to comment.