Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed visualization holes, updated file paths in examples #49

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/data_preparation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"outputs": [],
"source": [
"from sampo.generator import SimpleSynthetic\n",
"from sampo.generator.base import SimpleSynthetic\n",
"from sampo.generator.types import SyntheticGraphType"
]
},
Expand Down Expand Up @@ -54,7 +54,7 @@
"# simple graph\n",
"# should generate general (average) type of graph with 10 clusters from 100 to 200 vertices each\n",
"\n",
"simple_wg = ss.work_graph(mode=SyntheticGraphType.General,\n",
"simple_wg = ss.work_graph(mode=SyntheticGraphType.GENERAL,\n",
" cluster_counts=10,\n",
" bottom_border=100,\n",
" top_border=200)"
Expand Down Expand Up @@ -230,7 +230,7 @@
"execution_count": 11,
"outputs": [],
"source": [
"from sampo.generator import get_contractor_by_wg\n",
"from sampo.generator.environment.contractor_by_wg import get_contractor_by_wg\n",
"\n",
"contractors = [get_contractor_by_wg(simple_wg)]"
],
Expand Down
5 changes: 3 additions & 2 deletions examples/local_optimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"outputs": [],
"source": [
"from sampo.generator import SimpleSynthetic, get_contractor_by_wg\n",
"from sampo.generator.base import SimpleSynthetic\n",
"from sampo.generator.environment.contractor_by_wg import get_contractor_by_wg\n",
"from sampo.generator.types import SyntheticGraphType\n",
"from sampo.scheduler.heft.base import HEFTScheduler\n",
"from sampo.pipeline import SchedulingPipeline"
Expand Down Expand Up @@ -40,7 +41,7 @@
"# simple graph\n",
"# should generate general (average) type of graph with 10 clusters from 100 to 200 vertices each\n",
"\n",
"simple_wg = ss.work_graph(mode=SyntheticGraphType.General,\n",
"simple_wg = ss.work_graph(mode=SyntheticGraphType.GENERAL,\n",
" cluster_counts=10,\n",
" bottom_border=100,\n",
" top_border=200)\n",
Expand Down
Loading