Skip to content

Commit

Permalink
Hide signac-flow progress output.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Oct 31, 2023
1 parent b58fe82 commit ad642a5
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 297 deletions.
1 change: 1 addition & 0 deletions 05-Organizing-and-Executing-Simulations/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dataspace
signac.rc
.signac
47 changes: 34 additions & 13 deletions 05-Organizing-and-Executing-Simulations/01-Organizing-Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"metadata": {},
"source": [
"A **signac** project represents the entire **data space** stored on disk with associated metadata.\n",
"The method `init_project` creates a **signac** project in the *current working directory* by placing a `signac.rc` file with the project metadata and a `workspace` directory to hold the **directories** of the **data space**. The `name` argument is required with **signac** 1.x, but the value of the name is used only to populate `signac.rc`.\n",
"The method `init_project` creates a **signac** project in the *current working directory* by placing a `.signac/config` file with the project metadata and a `workspace` directory to hold the **directories** of the **data space**.\n",
"\n",
"Create the project:"
]
Expand All @@ -154,13 +154,29 @@
"name": "stdout",
"output_type": "stream",
"text": [
"project = None\n",
"schema_version = 1\n"
"schema_version = 2\n"
]
}
],
"source": [
"!cat signac.rc"
"!cat .signac/config"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"total 0\n"
]
}
],
"source": [
"!ls -l workspace"
]
},
{
Expand All @@ -172,7 +188,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -181,7 +197,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -190,7 +206,7 @@
"{'N_particles': 128, 'volume_fraction': 0.6, 'seed': 20}"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -208,7 +224,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -217,7 +233,7 @@
"{}"
]
},
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -236,7 +252,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -277,7 +293,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -305,7 +321,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -362,6 +378,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -372,7 +393,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.2"
"version": "3.11.6"
},
"record_timing": false
},
Expand Down
155 changes: 21 additions & 134 deletions 05-Organizing-and-Executing-Simulations/02-Executing-Simulations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -246,68 +246,6 @@
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"application/json": {
"ascii": false,
"bar_format": null,
"colour": null,
"elapsed": 0.0117645263671875,
"initial": 0,
"n": 0,
"ncols": null,
"nrows": 16,
"postfix": null,
"prefix": "Fetching status",
"rate": null,
"total": 6,
"unit": "it",
"unit_divisor": 1000,
"unit_scale": false
},
"application/vnd.jupyter.widget-view+json": {
"model_id": "c50f83ecded44cec9c13c6d040d7c635",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Fetching status: 0%| | 0/6 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/json": {
"ascii": false,
"bar_format": null,
"colour": null,
"elapsed": 0.008957386016845703,
"initial": 0,
"n": 0,
"ncols": null,
"nrows": 16,
"postfix": null,
"prefix": "Fetching labels",
"rate": null,
"total": 3,
"unit": "it",
"unit_divisor": 1000,
"unit_scale": false
},
"application/vnd.jupyter.widget-view+json": {
"model_id": "f5d6204d7c7646a392dbb7dfb42ed25b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Fetching labels: 0%| | 0/3 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
Expand All @@ -331,6 +269,7 @@
"project = Project()\n",
"project.print_status(overview=False,\n",
" detailed=True,\n",
" hide_progress=True,\n",
" parameters=['volume_fraction'])"
]
},
Expand Down Expand Up @@ -368,13 +307,16 @@
"output_type": "stream",
"text": [
"workspace/59363805e6f46a715bc154b38dffc4e4:\n",
"lattice.gsd random.gsd signac_job_document.json signac_statepoint.json\n",
"lattice.gsd signac_job_document.json\n",
"random.gsd signac_statepoint.json\n",
"\n",
"workspace/972b10bd6b308f65f0bc3a06db58cf9d:\n",
"lattice.gsd random.gsd signac_job_document.json signac_statepoint.json\n",
"lattice.gsd signac_job_document.json\n",
"random.gsd signac_statepoint.json\n",
"\n",
"workspace/c1a59a95a0e8b4526b28cf12aa0a689e:\n",
"lattice.gsd random.gsd signac_job_document.json signac_statepoint.json\n"
"lattice.gsd signac_job_document.json\n",
"random.gsd signac_statepoint.json\n"
]
}
],
Expand All @@ -394,68 +336,6 @@
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"application/json": {
"ascii": false,
"bar_format": null,
"colour": null,
"elapsed": 0.013468742370605469,
"initial": 0,
"n": 0,
"ncols": null,
"nrows": 16,
"postfix": null,
"prefix": "Fetching status",
"rate": null,
"total": 6,
"unit": "it",
"unit_divisor": 1000,
"unit_scale": false
},
"application/vnd.jupyter.widget-view+json": {
"model_id": "8754ecbe1c5947269a1b2ef774f00437",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Fetching status: 0%| | 0/6 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/json": {
"ascii": false,
"bar_format": null,
"colour": null,
"elapsed": 0.008599281311035156,
"initial": 0,
"n": 0,
"ncols": null,
"nrows": 16,
"postfix": null,
"prefix": "Fetching labels",
"rate": null,
"total": 3,
"unit": "it",
"unit_divisor": 1000,
"unit_scale": false
},
"application/vnd.jupyter.widget-view+json": {
"model_id": "f7b1f649c8e44df390885e9d2e8741e9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Fetching labels: 0%| | 0/3 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
Expand All @@ -478,6 +358,7 @@
"source": [
"project.print_status(overview=False,\n",
" detailed=True,\n",
" hide_progress=True,\n",
" parameters=['volume_fraction'])"
]
},
Expand Down Expand Up @@ -514,16 +395,16 @@
"output_type": "stream",
"text": [
"workspace/59363805e6f46a715bc154b38dffc4e4:\n",
"compressed.gsd\trandom.gsd\t\t signac_statepoint.json\n",
"lattice.gsd\tsignac_job_document.json\n",
"compressed.gsd random.gsd signac_statepoint.json\n",
"lattice.gsd signac_job_document.json\n",
"\n",
"workspace/972b10bd6b308f65f0bc3a06db58cf9d:\n",
"compressed.gsd\trandom.gsd\t\t signac_statepoint.json\n",
"lattice.gsd\tsignac_job_document.json\n",
"compressed.gsd random.gsd signac_statepoint.json\n",
"lattice.gsd signac_job_document.json\n",
"\n",
"workspace/c1a59a95a0e8b4526b28cf12aa0a689e:\n",
"compressed.gsd\trandom.gsd\t\t signac_statepoint.json\n",
"lattice.gsd\tsignac_job_document.json\n"
"compressed.gsd random.gsd signac_statepoint.json\n",
"lattice.gsd signac_job_document.json\n"
]
}
],
Expand Down Expand Up @@ -559,6 +440,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -568,7 +454,8 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
"pygments_lexer": "ipython3",
"version": "3.11.6"
},
"record_timing": false
},
Expand Down
Loading

0 comments on commit ad642a5

Please sign in to comment.