Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/python-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7.17, 3.8]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7.17, 3.8]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7.17, 3.8]

steps:
- uses: actions/checkout@v2
Expand Down
27 changes: 8 additions & 19 deletions tutorials/hpo_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,14 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2023-02-14T01:23:10.969718Z",
"start_time": "2023-02-14T01:23:10.565360Z"
}
},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'pysa'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[1], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# Import PySA\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpysa\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01msa\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Solver\n\u001b[1;32m 4\u001b[0m \u001b[38;5;66;03m# Import Numpy and Scipy for the processing of (sparse) matrices\u001b[39;00m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mscipy\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01msparse\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m csr_matrix\n",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pysa'"
]
}
],
"outputs": [],
"source": [
"# Import PySA\n",
"from pysa.sa import Solver\n",
Expand Down Expand Up @@ -661,7 +649,7 @@
" # label font properties\n",
" labelfont=dict(size=12, color=\"white\",),\n",
" ),\n",
" colorbar=dict(title=\"log10(TTS (s))\", titleside=\"right\",),\n",
" colorbar=dict(title=\"log10(TTS (s))\"),\n",
" connectgaps=True,\n",
" hoverinfo='skip',\n",
" hoverongaps=False,\n",
Expand Down Expand Up @@ -690,7 +678,8 @@
" \"yanchor\": \"top\",\n",
" \"x\": 0.5,\n",
" },\n",
")"
")\n",
"fig.show()"
]
},
{
Expand All @@ -703,7 +692,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3.10.13 ('jupyter')",
"language": "python",
"name": "python3"
},
Expand All @@ -717,7 +706,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.13"
},
"varInspector": {
"cols": {
Expand Down Expand Up @@ -750,7 +739,7 @@
},
"vscode": {
"interpreter": {
"hash": "8694fad53f786df7df254898a614e8419731754eee6a41d86dba2cf3f9f559d8"
"hash": "648b8b0a00fe3155e874e76650fa4075656e9b35ab2cc2e917a6b44bcc3c736a"
}
},
"widgets": {
Expand Down