This commit is contained in:
katrinamsft 2021-06-28 15:19:28 -07:00
Родитель 4b7726b3f9
Коммит b8919c2078
3 изменённых файлов: 78 добавлений и 1226 удалений

Просмотреть файл

@ -2,49 +2,9 @@
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index(), IPython.notebook.get_selected_index()+1)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<script>\n",
" code_show=true; \n",
" function code_toggle() {\n",
" if (code_show){\n",
" $('div.input').hide();\n",
" } else {\n",
" $('div.input').show();\n",
" }\n",
" code_show = !code_show\n",
" } \n",
" $( document ).ready(code_toggle);\n",
" </script>\n",
" The raw code for this IPython notebook is by default hidden for easier reading toggle on/off the raw code by clicking <a href=\"javascript:code_toggle()\">here</a>."
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Copyright (c) Microsoft Corporation.\n",
"# Licensed under the MIT license.\n",
@ -101,82 +61,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Workspace Collaboration Optimizer"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"If your team or company is moving to a new worksite or you need to reorganize an existing workspace, this open-source tool can help. The Workspace Collaboration Optimizer can help you identify and seat teams together in a workspace that maximizes and fosters cross-team productivity and collaboration. You can use this tool to generate floor plans quickly and objectively, in a data-driven way that optimizes employee collaboration by seating teams together. This tool works best in Chrome. "
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"## Distance Helper"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"This notebook produces a distance.csv file, one of the required input files to generate a seating plan. Before running this notebook, make sure you have your zone coordinates to reference and the list of workspaces for your campus. "
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"You can skip this step and move to the Validations notebook if you have already prepared a distance.csv file. You can also skip this step if you only have one building containing all of your workspaces and want to manually create your distance file - See documentation for more details."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index()+1, IPython.notebook.get_selected_index()+2)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display(Markdown(\"# Workspace Collaboration Optimizer\"))\n",
"display(Markdown(\"If your team or company is moving to a new worksite or you need to reorganize an existing workspace, this open-source tool can help. The Workspace Collaboration Optimizer can help you identify and seat teams together in a workspace that maximizes and fosters cross-team productivity and collaboration. You can use this tool to generate floor plans quickly and objectively, in a data-driven way that optimizes employee collaboration by seating teams together. This tool works best in Chrome. \"))\n",
@ -189,52 +76,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/markdown": [
"#### <font color='Green'> 1. Enter the total number of buildings you would like to include in your seating plan. </font>"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3f178308e2e749a2be733ac0e1051181",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Text(value='', description='Number of buildings', style=DescriptionStyle(description_width='185px'))"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4a85b7b96c5b471bbfc92aaa5194946f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(button_style='primary', description='Go', style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"style = {'description_width': '185px'}\n",
"layout = {'width': '365px'}\n",
@ -254,9 +98,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"\n",
@ -291,9 +133,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"import time\n",
@ -360,9 +200,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
" #now add these columns to dataframe \n",
@ -380,9 +218,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"columnsFLR = ['Number of Floors']\n",
@ -458,9 +294,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"#### clear_output()\n",
@ -483,9 +317,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"#dffloorsFINAL = to_dataframe(sheetnameFLRS)\n",
@ -518,9 +350,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"display(Markdown(\"#### <font color='Green'> 7. Enter a unique workspace name for each zone. </font>\"))\n",
@ -544,9 +374,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"\"\"\"\n",

Просмотреть файл

@ -2,59 +2,9 @@
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index(), IPython.notebook.get_selected_index()+1)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index(), IPython.notebook.get_selected_index()+1)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<script>\n",
" code_show=true; \n",
" function code_toggle() {\n",
" if (code_show){\n",
" $('div.input').hide();\n",
" } else {\n",
" $('div.input').show();\n",
" }\n",
" code_show = !code_show\n",
" } \n",
" $( document ).ready(code_toggle);\n",
" </script>\n",
" The raw code for this IPython notebook is by default hidden for easier reading toggle on/off the raw code by clicking <a href=\"javascript:code_toggle()\">here</a>."
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# Copyright (c) Microsoft Corporation.\n",
"# Licensed under the MIT license.\n",
@ -89,24 +39,9 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e42584f829d14aeebf29c98e35fd2f01",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(Output(), ToggleButtons(button_style='info', options=('Standard',), value=None)))"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"import pandas as pd \n",
"import numpy as np\n",
@ -190,100 +125,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index()+1, IPython.notebook.get_selected_index()+2)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"## Standard"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"<b>All four files will be programmatically read from previous stage of validations from the Final Files set folder:</b> "
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"{interactions.csv, team_size.csv, space_capacity.csv, and distance.csv}"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "11ffd0ac244e4b289289d56c5fd6b736",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output(layout=Layout(border='1px solid black'))"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f939a87c90e84c2987d63d1d03f1dbfa",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7b94eb9b868449a38af10ef262f3a6d4",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Text(value='', description='New results name:', layout=Layout(width='385px'), placeholder='No.x…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"def go_to_nextblock(btn):\n",
" display(Javascript('IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index()+1, IPython.notebook.get_selected_index()+3)'))\n",
@ -971,44 +815,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"You did not enter an output file name above. A default name of [floor_plan_2021-06-22T100726 ] will be used.\n",
"\u001b[1m floor_plan_2021-06-22T100726.xlsx\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "11ffd0ac244e4b289289d56c5fd6b736",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output(layout=Layout(border='1px solid black'))"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"IPython.notebook.execute_cell_range(IPython.notebook.get_selected_index()+1, IPython.notebook.get_selected_index()+1)"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"clear_output()\n",
"global out_filename\n",

Разница между файлами не показана из-за своего большого размера Загрузить разницу