Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pydynamo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
Pydynamo
Commits
863d8d27
Commit
863d8d27
authored
3 years ago
by
abaucher
Browse files
Options
Downloads
Patches
Plain Diff
Added some infos in pydynamoinit
parent
81c72c20
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pydynamo/__init__.py
+1
-1
1 addition, 1 deletion
pydynamo/__init__.py
pydynamo/world3/__init__.py
+1
-24
1 addition, 24 deletions
pydynamo/world3/__init__.py
with
2 additions
and
25 deletions
pydynamo/__init__.py
+
1
−
1
View file @
863d8d27
...
@@ -7,4 +7,4 @@ from pydynamo.core import psdsystem
...
@@ -7,4 +7,4 @@ from pydynamo.core import psdsystem
from
pydynamo.core.dynamo_converter
import
convert_dynamo_file
from
pydynamo.core.dynamo_converter
import
convert_dynamo_file
from
.world3
import
World3
from
.world3
import
World3
import
pydynamo.world3
This diff is collapsed.
Click to expand it.
pydynamo/world3/__init__.py
+
1
−
24
View file @
863d8d27
...
@@ -7,27 +7,4 @@ from .plot_utils import plot_world_with_scales, plot_world_03
...
@@ -7,27 +7,4 @@ from .plot_utils import plot_world_with_scales, plot_world_03
from
.scenarios_limits_to_growth
import
scenarios
from
.scenarios_limits_to_growth
import
scenarios
from
.world3_class
import
World3
from
.world3_class
import
World3
"""
import
pydynamo.world3.data_world3
code_file =
'
world3/code/limits_to_growth_pydynamo_code.py
'
code_file_72 =
'
world3/code/limits_to_growth_pydynamo_code_72.py
'
# Get every informations
sector_vars = {sector: [] for sector in var_sector.values()}
for var in var_sector:
sector_vars[var_sector[var]].append(var)
var_color = {v: sector_color[sector] for v, sector in var_sector.items()}
translated_defs = get_definitions.read_translated_defs(
'
world3/infos/translated_defs.md
'
)
definitions = {v: d[0] for v, d in translated_defs.items()}
def get_w3():
s = dno.parse_system.system_from_file(code_file)
s.add_comments(definitions)
return s
def get_w3_72():
s = dno.parse_system.system_from_file(code_file_72)
s.add_comments(definitions)
return s
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment