OpenSimula 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of OpenSimula might be problematic. Click here for more details.
- {opensimula-0.0.2 → opensimula-0.0.3}/PKG-INFO +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/getting_started.md +2 -2
- {opensimula-0.0.2 → opensimula-0.0.3}/pyproject.toml +1 -1
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Component.py +2 -2
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Parameter_container.py +1 -1
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Parameters.py +1 -1
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Project.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Variable.py +1 -1
- opensimula-0.0.3/src/OpenSimula/__init__.py +8 -0
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Construction.py +2 -2
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Day_schedule.py +2 -2
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/File_data.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/File_met.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Material.py +2 -2
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Outdoor.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Space.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Test_component.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Wall.py +3 -3
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Week_schedule.py +2 -2
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Year_schedule.py +3 -3
- opensimula-0.0.3/src/OpenSimula/components/__init__.py +11 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/debug_opensimula.py +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/example_opensimula.ipynb +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/example_opensimula.py +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/structure_tests.ipynb +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/temp_tests.ipynb +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/test_File_data.py +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/test_Project.py +2 -2
- {opensimula-0.0.2 → opensimula-0.0.3}/test/test_Schedules.py +1 -1
- {opensimula-0.0.2 → opensimula-0.0.3}/test/test_Simulation.py +4 -4
- opensimula-0.0.2/src/opensimula/__init__.py +0 -8
- opensimula-0.0.2/src/opensimula/components/__init__.py +0 -11
- {opensimula-0.0.2 → opensimula-0.0.3}/.gitignore +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/LICENSE +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/README.md +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/404.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/__init__.py +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/base.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/content.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/base.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/base.min.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/bootstrap-custom.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/bootstrap-custom.min.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/cinder.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/cinder.min.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/highlight.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/css/highlight.min.css +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/fonts/fontawesome-webfont.eot +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/fonts/fontawesome-webfont.svg +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/fonts/fontawesome-webfont.ttf +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/fonts/fontawesome-webfont.woff +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/favicon.ico +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid1.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid10.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid11.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid12.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid13.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid14.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid15.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid16.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid17.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid18.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid19.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid2.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid20.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid3.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid4.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid5.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid6.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid7.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid8.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/img/grid9.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/js/base.js +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/js/bootstrap-3.0.3.min.js +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/keyboard-modal.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/main.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/mkdocs_theme.yml +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/nav-sub.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/nav.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/search-modal.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/cinder/toc.html +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/component_list.md +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/developer_guide.md +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/favicon.ico +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/global_structure.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/icon_opensimula.ico +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/icon_opensimula.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/logo_opensimula.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/parameters.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/schedule_plot.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/img/variables.png +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/index.md +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/logos/global_structure.drawio +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/logos/opensimula_logo.drawio +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/logos/opensimula_logo.drawio.svg +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/logos/paramaters.drawio +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/logos/variables.drawio +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/docs/user_guide.md +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/makefile +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/mkdocs.yml +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/requirements.txt +0 -0
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Child.py +0 -0
- {opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/Simulation.py +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/bdd_project.json +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/bdd_project.xlsx +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/data_example.csv +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/data_example.xlsx +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/example_project.xlsx +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/test_project_1.json +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/test_project_1.xlsx +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/test_project_2.json +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/examples/test_project_2.xlsx +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/leeme.txt +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA1c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA2c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA3.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA3c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA4.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaA4c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaAlfa1c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaAlfa2c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaAlfa3c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaAlfa4c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB1c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB2c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB3.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB3c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB4.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaB4c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC1.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC1c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC2.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC2c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC3.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC3c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC4.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaC4c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD1.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD1c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD2.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD2c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD3.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaD3c.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaE1.met +0 -0
- {opensimula-0.0.2 → opensimula-0.0.3}/test/meteo/zonaE1c.met +0 -0
|
@@ -122,10 +122,10 @@ Finally, the `Year_schedule` named `year` sets three annual periods using the `p
|
|
|
122
122
|
- August 1st to September 1st: `holiday_week`.
|
|
123
123
|
- September 1st to December 31st: `working_week`.
|
|
124
124
|
|
|
125
|
-
To simulate this project that we have defined, we first import the
|
|
125
|
+
To simulate this project that we have defined, we first import the OpenSimula package with the alias osm, create a simulation environment in the `sim` variable, a project within that simulation environment called `pro`. We load the project reading the dictionary that we have explained previously with the `read_dict` function available for projects and we simulate it using the `simulate()` function.
|
|
126
126
|
|
|
127
127
|
<pre><code class="python">
|
|
128
|
-
import
|
|
128
|
+
import OpenSimula as osm
|
|
129
129
|
|
|
130
130
|
sim = osm.Simulation()
|
|
131
131
|
pro = osm.Project(sim)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import pandas as pd
|
|
2
|
-
from
|
|
3
|
-
from
|
|
2
|
+
from OpenSimula.Parameter_container import Parameter_container
|
|
3
|
+
from OpenSimula.Parameters import Parameter_string
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Component(Parameter_container):
|
|
@@ -2,9 +2,9 @@ import json
|
|
|
2
2
|
import datetime as dt
|
|
3
3
|
import numpy as np
|
|
4
4
|
import pandas as pd
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
5
|
+
from OpenSimula.Parameter_container import Parameter_container
|
|
6
|
+
from OpenSimula.Parameters import Parameter_int, Parameter_string, Parameter_string_list
|
|
7
|
+
from OpenSimula.components import *
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Project(Parameter_container):
|
{opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Construction.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
1
|
+
from OpenSimula.Parameters import Parameter_component_list, Parameter_float_list
|
|
2
|
+
from OpenSimula.Component import Component
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class Construction(Component):
|
{opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Day_schedule.py
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from bisect import bisect
|
|
2
|
-
from
|
|
2
|
+
from OpenSimula.Parameters import (
|
|
3
3
|
Parameter_int_list,
|
|
4
4
|
Parameter_float_list,
|
|
5
5
|
Parameter_options,
|
|
6
6
|
)
|
|
7
|
-
from
|
|
7
|
+
from OpenSimula.Component import Component
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Day_schedule(Component):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pandas as pd
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
2
|
+
from OpenSimula.Parameters import Parameter_string, Parameter_options
|
|
3
|
+
from OpenSimula.Component import Component
|
|
4
|
+
from OpenSimula.Variable import Variable
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class File_data(Component):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import numpy as np
|
|
2
2
|
import datetime as dt
|
|
3
3
|
import math
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from OpenSimula.Parameters import Parameter_string
|
|
5
|
+
from OpenSimula.Component import Component
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class File_met(Component):
|
|
@@ -25,7 +25,7 @@ class File_met(Component):
|
|
|
25
25
|
self.sol_cenit = np.zeros(8760)
|
|
26
26
|
|
|
27
27
|
def check(self):
|
|
28
|
-
errors = super().check()
|
|
28
|
+
errors = super().check()
|
|
29
29
|
# Read the file
|
|
30
30
|
try:
|
|
31
31
|
f = open(self.parameter("file_name").value, "r")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import math
|
|
2
2
|
import datetime as dt
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from OpenSimula.Component import Component
|
|
4
|
+
from OpenSimula.Parameters import Parameter_component
|
|
5
|
+
from OpenSimula.Variable import Variable
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class Outdoor(Component):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
1
|
+
from OpenSimula.Component import Component
|
|
2
|
+
from OpenSimula.Parameters import Parameter_component_list
|
|
3
|
+
from OpenSimula.Variable import Variable
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Space(Component):
|
{opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Test_component.py
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from
|
|
1
|
+
from OpenSimula.Parameters import (
|
|
2
2
|
Parameter_boolean,
|
|
3
3
|
Parameter_float,
|
|
4
4
|
Parameter_int,
|
|
@@ -12,8 +12,8 @@ from opensimula.Parameters import (
|
|
|
12
12
|
Parameter_options_list,
|
|
13
13
|
Parameter_component_list,
|
|
14
14
|
)
|
|
15
|
-
from
|
|
16
|
-
from
|
|
15
|
+
from OpenSimula.Component import Component
|
|
16
|
+
from OpenSimula.Variable import Variable
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Test_component(Component):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
1
|
+
from OpenSimula.Component import Component
|
|
2
|
+
from OpenSimula.Parameters import Parameter_options, Parameter_component
|
|
3
|
+
from OpenSimula.Variable import Variable
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Wall(Component):
|
{opensimula-0.0.2/src/opensimula → opensimula-0.0.3/src/OpenSimula}/components/Year_schedule.py
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import datetime as dt
|
|
2
2
|
from bisect import bisect
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from OpenSimula.Parameters import Parameter_component_list, Parameter_string_list
|
|
4
|
+
from OpenSimula.Component import Component
|
|
5
|
+
from OpenSimula.Variable import Variable
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class Year_schedule(Component):
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from OpenSimula.components.Material import Material
|
|
2
|
+
from OpenSimula.components.Construction import Construction
|
|
3
|
+
from OpenSimula.components.Test_component import Test_component
|
|
4
|
+
from OpenSimula.components.File_met import File_met
|
|
5
|
+
from OpenSimula.components.Outdoor import Outdoor
|
|
6
|
+
from OpenSimula.components.Space import Space
|
|
7
|
+
from OpenSimula.components.Wall import Wall
|
|
8
|
+
from OpenSimula.components.File_data import File_data
|
|
9
|
+
from OpenSimula.components.Day_schedule import Day_schedule
|
|
10
|
+
from OpenSimula.components.Week_schedule import Week_schedule
|
|
11
|
+
from OpenSimula.components.Year_schedule import Year_schedule
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import OpenSimula
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
def test_simulation():
|
|
5
|
-
sim =
|
|
6
|
-
p1 =
|
|
5
|
+
sim = OpenSimula.Simulation()
|
|
6
|
+
p1 = OpenSimula.Project(sim)
|
|
7
7
|
p1.parameter("name").value = "Project 1"
|
|
8
|
-
p2 =
|
|
8
|
+
p2 = OpenSimula.Project(sim)
|
|
9
9
|
p2.parameter("name").value = "Project 2"
|
|
10
10
|
|
|
11
11
|
assert len(sim.project_list()) == 2
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from opensimula.components.Material import Material
|
|
2
|
-
from opensimula.components.Construction import Construction
|
|
3
|
-
from opensimula.components.Test_component import Test_component
|
|
4
|
-
from opensimula.components.File_met import File_met
|
|
5
|
-
from opensimula.components.Outdoor import Outdoor
|
|
6
|
-
from opensimula.components.Space import Space
|
|
7
|
-
from opensimula.components.Wall import Wall
|
|
8
|
-
from opensimula.components.File_data import File_data
|
|
9
|
-
from opensimula.components.Day_schedule import Day_schedule
|
|
10
|
-
from opensimula.components.Week_schedule import Week_schedule
|
|
11
|
-
from opensimula.components.Year_schedule import Year_schedule
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|