Skip to content

Commit

Permalink
fix pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Oct 10, 2023
1 parent 1299031 commit 1079111
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
25 changes: 18 additions & 7 deletions notebooks/binom_factor_table.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -35,7 +35,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand All @@ -60,9 +60,16 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)\n"
]
},
{
"name": "stdout",
"output_type": "stream",
Expand Down Expand Up @@ -142,7 +149,7 @@
"a**3 + 9*a**2*b + 9*a*b**2 + b**3"
]
},
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -174,7 +181,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -235,7 +242,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -419,7 +426,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -486,7 +493,11 @@
"inds, weights[inds]\n",
"\n",
"with open(\"../pyscf_ipu/experimental/binom_factor_table.py\", \"w\") as f:\n",
" print(\"# Copyright (c) 2023 Graphcore Ltd. All rights reserved.\", file=f)\n",
" print(\"# AUTOGENERATED from notebooks/binom_factor_table.ipynb\", file=f)\n",
" print(\"# fmt: off\", file=f)\n",
" print(\"# flake8: noqa\", file=f)\n",
" print(\"# isort: skip_file\", file=f)\n",
" print(\"from numpy import array\", file=f)\n",
" print(\"binom_factor_table = \", repr((inds, weights[inds])), file=f)\n",
"\n",
Expand Down
4 changes: 4 additions & 0 deletions pyscf_ipu/experimental/binom_factor_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Copyright (c) 2023 Graphcore Ltd. All rights reserved.
# AUTOGENERATED from notebooks/binom_factor_table.ipynb
# fmt: off
# flake8: noqa
# isort: skip_file
from numpy import array
binom_factor_table = ((array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2,
Expand Down

0 comments on commit 1079111

Please sign in to comment.