Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write tests #28

Draft
wants to merge 55 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
8734791
update docs
elbeejay Feb 28, 2024
0bcd030
Merge branch 'main' of github.com:worldbank/GOSTurban into update-docs
elbeejay Feb 29, 2024
2eb4db3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
9f660ff
remove docs/notebooks
elbeejay Feb 29, 2024
c6ce3ca
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
be10311
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
elbeejay Feb 29, 2024
9420f8d
Revert "remove docs/notebooks"
elbeejay Feb 29, 2024
545ab38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
5a8a7fa
modify toc to only include notebook tutorials, clear notebook outputs
elbeejay Feb 29, 2024
ebeb0bb
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
ed08bff
fix deps, imports, and ci
elbeejay Feb 29, 2024
c9f852f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
419648a
generate conf.py as part of docs build workflow
elbeejay Feb 29, 2024
5e3578d
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
555845a
have workflow clean notebooks
elbeejay Feb 29, 2024
861c786
add extensions, options etc to _config.yml
elbeejay Feb 29, 2024
7c60f12
cleaned notebooks
elbeejay Feb 29, 2024
7ec9b65
remove non-functional exclusions
elbeejay Feb 29, 2024
4ebf1f5
build docs on prs, only deploy on main
elbeejay Feb 29, 2024
081bf9a
require nbconvert for docs
elbeejay Mar 1, 2024
a66f8c5
doc-strings for urbanraster.py
elbeejay Mar 12, 2024
0306d5e
doc-strings for step2
elbeejay Mar 12, 2024
3ec3ebd
lei.py docstrings
elbeejay Mar 12, 2024
522c775
urb doc-strings
elbeejay Mar 12, 2024
594004e
country_helper.py docstrings
elbeejay Mar 12, 2024
9f2f8ad
ignore words
elbeejay Mar 12, 2024
f5fa9c0
ignore more words
elbeejay Mar 12, 2024
88872dd
fix spellings
elbeejay Mar 12, 2024
8a66c39
fix spellings
elbeejay Mar 12, 2024
41ec26b
ignore another word
elbeejay Mar 12, 2024
66eb8cf
tomli to codepsell
elbeejay Mar 12, 2024
8773323
clean up doc-strings
elbeejay Mar 13, 2024
29bc9c8
clean up notebooks
elbeejay Mar 13, 2024
4bfd5f3
exclude implementation notebooks from ruff
elbeejay Mar 16, 2024
8b7c61f
finish cleaning up doc-strings
elbeejay Mar 16, 2024
cd2e946
placeholder test
elbeejay Mar 18, 2024
19ef8df
add test ci workflow
elbeejay Mar 18, 2024
0ca4404
basic testing setup
elbeejay Mar 18, 2024
8ad82a9
only test using python 3.10
elbeejay Mar 18, 2024
5bf7594
only test ubuntu for now
elbeejay Mar 18, 2024
907ab71
GOSTRocks to GOSTrocks to match name change
elbeejay Mar 20, 2024
4b5e731
add country_helper tests
elbeejay Mar 22, 2024
98aaf7d
testing country_helper
elbeejay Mar 23, 2024
1b095bb
addtl lei testing
elbeejay Mar 23, 2024
0c61c4c
more tests
elbeejay Apr 4, 2024
6c88d11
tests for LEI functions
elbeejay Apr 13, 2024
328f884
urban helper tests
elbeejay Apr 13, 2024
017af46
ch tests
elbeejay Apr 13, 2024
d775326
testing
elbeejay Apr 14, 2024
470ef1b
add more tests, make code more module/flexible as tests are written
elbeejay May 6, 2024
a6bb36f
refactor and add tests to urbanraster
elbeejay May 8, 2024
61fe477
adding tests and an integrative test
elbeejay May 10, 2024
b367e61
add tests, need to patch/scope mocks
elbeejay May 21, 2024
e755db6
scope tests, new lei test
elbeejay May 22, 2024
2a44a11
resolve new conflicts
elbeejay Jun 14, 2024
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
Prev Previous commit
Next Next commit
cleaned notebooks
  • Loading branch information
elbeejay committed Feb 29, 2024
commit 7c60f123ec9f67368d35c36b083d514f24f85c46
42 changes: 6 additions & 36 deletions notebooks/Implementations/JUP_SURGP_GLO_B_D__LEI_Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'src.LEI'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_81457/3673388608.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0;31m#Import GOST urban functions\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"../../\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 16\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mLEI\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'src.LEI'"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import sys\n",
Expand All @@ -48,9 +36,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"LEI_folder = \"/home/wb411133/data/Projects/LEI\"\n",
Expand Down Expand Up @@ -135,9 +121,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"for ghsl_file in GHSL_files:\n",
Expand Down Expand Up @@ -412,22 +396,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python (geog)",
"language": "python",
"name": "geog"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"name": "python"
}
},
"nbformat": 4,
Expand Down
Loading