Skip to content

Commit

Permalink
Missing code end in docs, format the notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Feb 17, 2023
1 parent a0407ce commit 3bfed5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev-testing/functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,8 @@
"source": [
"def normalize_name(jur: str, group: str, n: int, per, last_field: str, this_field: str):\n",
" \"\"\"Add hard coded conversions maybe by calling a function\n",
" if returns 0 then fail over to ML or other way around poor prob -> check hard-coded\"\"\"\n",
" if returns 0 then fail over to ML or other way around poor prob -> check hard-coded\n",
" \"\"\"\n",
" if this_field not in included_fields:\n",
" this_field = re_case(this_field)\n",
" out_put = regex_norm_field(this_field)\n",
Expand Down Expand Up @@ -3022,7 +3023,6 @@
"source": [
"new_v = input(\"Enter new version number or leave blank to keep.\\n\")\n",
"if len(re.findall(\"(\\d+\\.\\d+\\.\\d+\\.\\d+)\", new_v)) > 0:\n",
"\n",
" with open(\"../setup.py\", \"w\") as file:\n",
" content = re.sub(\n",
" \"version='(\\d+\\.\\d+\\.\\d+\\.\\d+)'\", \"version='%s'\" % new_v, content\n",
Expand Down
4 changes: 2 additions & 2 deletions dev-testing/train classifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
"source": [
"path = \"ML_training/auto/\"\n",
"f = []\n",
"for (dirpath, dirnames, filenames) in walk(path):\n",
"for dirpath, dirnames, filenames in walk(path):\n",
" f.extend(filenames)\n",
" break\n",
"f1 = [file for file in f]\n",
Expand Down Expand Up @@ -920,7 +920,7 @@
"source": [
"path = \"ML_training/ground/\"\n",
"f = []\n",
"for (dirpath, dirnames, filenames) in walk(path):\n",
"for dirpath, dirnames, filenames in walk(path):\n",
" f.extend(filenames)\n",
" break\n",
"f1 = [file for file in f]\n",
Expand Down
1 change: 1 addition & 0 deletions formfyxer/pdf_wrangling.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def set_fields(
]
]
)
```
"""
if not fields_per_page:
# Nothing to do, lol
Expand Down

0 comments on commit 3bfed5d

Please sign in to comment.