Skip to content

Commit 10d9241

Browse files
authored
Merge pull request #9 from dev0Guy/change-project-layout
Change project layout
2 parents 3abb168 + 7774f26 commit 10d9241

71 files changed

Lines changed: 255 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/server-simulator.iml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "server-simulator"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -42,7 +42,7 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
4242
line-length = 88
4343

4444
[tool.hatch.build.targets.wheel]
45-
packages = ["src"]
45+
packages = ["src/server_simulator"]
4646

4747
[build-system]
4848
requires = ["hatchling"]
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
from src.envs.cluster_simulator.base.extractors.reward import (
1+
from src.server_simulator.envs.cluster_simulator.base.extractors.reward import (
22
DifferentInPendingJobsRewardCaculator,
33
)
4-
from src.envs.cluster_simulator.basic import BasicClusterEnv as BasicClusterEnv
4+
from src.server_simulator.envs.cluster_simulator.basic import (
5+
BasicClusterEnv as BasicClusterEnv,
6+
)
57
from gymnasium import register
68

7-
from src.envs.cluster_simulator.deep_rm.creator import (
9+
from src.server_simulator.envs.cluster_simulator.deep_rm.creator import (
810
DeepRMEnvCreator,
911
DeepRMCreatorParameters,
1012
)
11-
from src.envs.cluster_simulator.metric_based.creator import (
13+
from src.server_simulator.envs.cluster_simulator.metric_based.creator import (
1214
MetricBasedEnvCreator,
1315
MetricBasedCreatorParameters,
1416
)
15-
from src.envs.cluster_simulator.single_slot.creator import (
17+
from src.server_simulator.envs.cluster_simulator.single_slot.creator import (
1618
SingleSlotEnvCreator,
1719
SingleSlotCreatorParameters,
1820
)
File renamed without changes.

src/envs/cluster_simulator/actions.py renamed to src/server_simulator/envs/cluster_simulator/actions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from typing import NamedTuple, Tuple, TypeVar
22
import gymnasium as gym
33

4-
from src.envs.cluster_simulator.base.internal.cluster import ClusterAction, ClusterABC
4+
from src.server_simulator.envs.cluster_simulator.base.internal.cluster import (
5+
ClusterAction,
6+
ClusterABC,
7+
)
58

69
Cluster = TypeVar("Cluster", bound=ClusterABC)
710

src/envs/cluster_simulator/base/extractors/__init__.py renamed to src/server_simulator/envs/cluster_simulator/base/__init__.py

File renamed without changes.

src/envs/cluster_simulator/utils/__init__.py renamed to src/server_simulator/envs/cluster_simulator/base/extractors/__init__.py

File renamed without changes.

src/envs/cluster_simulator/base/extractors/information.py renamed to src/server_simulator/envs/cluster_simulator/base/extractors/information.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from typing import TypeVar, TypedDict, Generic
33
import numpy.typing as npt
44

5-
from src.envs.cluster_simulator.base.extractors.observation import ClusterObservation
5+
from src.server_simulator.envs.cluster_simulator.base.extractors.observation import (
6+
ClusterObservation,
7+
)
68

79

810
class ClusterBaseInformation(TypedDict):

0 commit comments

Comments
 (0)