Skip to content

Commit e36e357

Browse files
committed
basic functionality
1 parent fa13721 commit e36e357

35 files changed

+366
-2724
lines changed

ngcsimlib/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
from . import utils
2-
from . import controller
32

43
import argparse, os, json
54
from types import SimpleNamespace
65
from importlib import import_module
76
from ngcsimlib.configManager import init_config, get_config
87
from ngcsimlib.logger import warn
98
from pkg_resources import get_distribution
10-
from ngcsimlib.compilers.process import Process, transition
119

1210
__version__ = get_distribution('ngcsimlib').version ## set software version
1311

ngcsimlib/compartment.py

Lines changed: 0 additions & 142 deletions
This file was deleted.

ngcsimlib/compartment/compartment.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@
66

77

88
class Compartment(metaclass=CompartmentMeta):
9-
def __init__(self, root_name, name, initial_value):
10-
self.name = name
9+
def __init__(self, initial_value):
1110
self._initial_value = initial_value
12-
self._root_target = gState.make_key(root_name, name)
11+
12+
self.name = None
13+
self._root_target = None
14+
self._target = self._root_target
15+
16+
def _setup(self, objName, compName, path):
17+
self.name = compName
18+
self._root_target = path + ":" + objName + ":" + self.name
19+
# self._root_target = objName + ":" + self.name
1320
self._target = self._root_target
21+
self.set(self._initial_value)
1422

1523
def set(self, value):
1624
gState.set_state({self.target: value})

ngcsimlib/compilers/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

ngcsimlib/compilers/legacy_compiler/__init__.py

Whitespace-only changes.

ngcsimlib/compilers/legacy_compiler/command_compiler.py

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)