From a92e83dbff8155c6664400d864c4ec649fdbe827 Mon Sep 17 00:00:00 2001 From: Humberto Munoz Bauza Date: Fri, 16 May 2025 10:31:57 -0700 Subject: [PATCH 1/3] adjust python 3.7 test --- .github/workflows/python-example.yml | 2 +- .github/workflows/python-pytest.yml | 2 +- .github/workflows/python-tutorials.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-example.yml b/.github/workflows/python-example.yml index f1ad248..0a4e018 100644 --- a/.github/workflows/python-example.yml +++ b/.github/workflows/python-example.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8] + python-version: [3.7.17, 3.8] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/python-pytest.yml b/.github/workflows/python-pytest.yml index 2cda228..4abcd8a 100644 --- a/.github/workflows/python-pytest.yml +++ b/.github/workflows/python-pytest.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8] + python-version: [3.7.17, 3.8] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/python-tutorials.yml b/.github/workflows/python-tutorials.yml index af1f705..4acaf11 100644 --- a/.github/workflows/python-tutorials.yml +++ b/.github/workflows/python-tutorials.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8] + python-version: [3.7.17, 3.8] steps: - uses: actions/checkout@v2 From 15acaebd0b4da47edc3950658575fbbb1af4f3a2 Mon Sep 17 00:00:00 2001 From: Humberto Munoz Bauza Date: Fri, 16 May 2025 10:35:48 -0700 Subject: [PATCH 2/3] adjust python 3.7 test --- .github/workflows/python-example.yml | 2 +- .github/workflows/python-pytest.yml | 2 +- .github/workflows/python-tutorials.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-example.yml b/.github/workflows/python-example.yml index 0a4e018..bbc1507 100644 --- a/.github/workflows/python-example.yml +++ b/.github/workflows/python-example.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: [3.7.17, 3.8] diff --git a/.github/workflows/python-pytest.yml b/.github/workflows/python-pytest.yml index 4abcd8a..ac8cb81 100644 --- a/.github/workflows/python-pytest.yml +++ b/.github/workflows/python-pytest.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: [3.7.17, 3.8] diff --git a/.github/workflows/python-tutorials.yml b/.github/workflows/python-tutorials.yml index 4acaf11..1b4d8d7 100644 --- a/.github/workflows/python-tutorials.yml +++ b/.github/workflows/python-tutorials.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: [3.7.17, 3.8] From 8d71ebc1c843c57e15bdabeb89374202180cc8dc Mon Sep 17 00:00:00 2001 From: Humberto Munoz Bauza Date: Fri, 16 May 2025 11:39:43 -0700 Subject: [PATCH 3/3] adjust python 3.7 test --- tutorials/hpo_demo.ipynb | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/tutorials/hpo_demo.ipynb b/tutorials/hpo_demo.ipynb index dc6d1b9..c34a66a 100644 --- a/tutorials/hpo_demo.ipynb +++ b/tutorials/hpo_demo.ipynb @@ -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", @@ -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", @@ -690,7 +678,8 @@ " \"yanchor\": \"top\",\n", " \"x\": 0.5,\n", " },\n", - ")" + ")\n", + "fig.show()" ] }, { @@ -703,7 +692,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "Python 3.10.13 ('jupyter')", "language": "python", "name": "python3" }, @@ -717,7 +706,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.10" + "version": "3.10.13" }, "varInspector": { "cols": { @@ -750,7 +739,7 @@ }, "vscode": { "interpreter": { - "hash": "8694fad53f786df7df254898a614e8419731754eee6a41d86dba2cf3f9f559d8" + "hash": "648b8b0a00fe3155e874e76650fa4075656e9b35ab2cc2e917a6b44bcc3c736a" } }, "widgets": {