Skip to content

Commit

Permalink
rename src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
GJHSimmons committed Jan 15, 2024
1 parent 8fe67bd commit dd715b5
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import sys
sys.path.append(os.path.join(os.path.dirname(__file__),'../'))

from models.populations import IndexedPopulation, Population
from models.variables import Parameter
from psymple.populations import IndexedPopulation, Population
from psymple.variables import Parameter

FlyEggs1 = Population("flyeggs1")
FlyEggs2 = Population("flyeggs2")
Expand Down
4 changes: 2 additions & 2 deletions examples/system_sim_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
sys.path.append(os.path.join(os.path.dirname(__file__),'../'))

# import matplotlib.pyplot as plt
from models.populations import Population
from models.system import System
from psymple.populations import Population
from psymple.system import System

A = Population("A", initial_value=100)
B = Population("B", initial_value=1)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion models/abstract.py → psymple/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sympy as sym

from models.globals import sym_custom_ns
from psymple.globals import sym_custom_ns


class DependencyError(Exception):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion models/globals.py → psymple/globals.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sympy as sym
from models.custom_functions import DegreeDays, FFTemperature
from psymple.custom_functions import DegreeDays, FFTemperature

# from custom_functions import DegreeDays, FFTemperature

Expand Down
4 changes: 2 additions & 2 deletions models/populations.py → psymple/populations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np

from models.abstract import Container
from models.variables import (
from psymple.abstract import Container
from psymple.variables import (
Parameter,
Parameters,
UpdateRule,
Expand Down
4 changes: 2 additions & 2 deletions models/system.py → psymple/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import matplotlib.pyplot as plt
import networkx as nx

from models.globals import T
from models.variables import (
from psymple.globals import T
from psymple.variables import (
Parameters,
SimParameter,
SimUpdateRule,
Expand Down
4 changes: 2 additions & 2 deletions models/variables.py → psymple/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import sympy as sym

from models.abstract import Container, DependencyError, SymbolWrapper
from models.globals import T, sym_custom_ns
from psymple.abstract import Container, DependencyError, SymbolWrapper
from psymple.globals import T, sym_custom_ns


class Variable(SymbolWrapper):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from models.populations import Population
from models.custom_functions import DegreeDays
from psymple.populations import Population
from psymple.custom_functions import DegreeDays


# Note: these classes are mostly for structuring tests.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_system.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import unittest
import sympy as sym

from models.abstract import DependencyError
from models.populations import Population
from models.variables import SimVariable, SimParameter, SimUpdateRule
from models.system import PopulationSystemError, System
from psymple.abstract import DependencyError
from psymple.populations import Population
from psymple.variables import SimVariable, SimParameter, SimUpdateRule
from psymple.system import PopulationSystemError, System


class TestInitialization(unittest.TestCase):
Expand Down

0 comments on commit dd715b5

Please sign in to comment.