Skip to content

Commit

Permalink
Merge pull request #2 from anerv/anvy-src-edit
Browse files Browse the repository at this point in the history
rename 'src' to 'bikedna'
  • Loading branch information
anerv authored Jun 10, 2024
2 parents a63e47d + 1db6529 commit e1c798b
Show file tree
Hide file tree
Showing 22 changed files with 52 additions and 53 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions environment_used.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: bikedna
channels:
- conda-forge
- defaults
dependencies:
- networkx
- ipykernel
- momepy
- folium
- jupyterlab
- geopandas
- osmnx
- pyyaml
- contextily
- pandas
- matplotlib
- haversine
- nbconvert
8 changes: 4 additions & 4 deletions scripts/COMPARE/3a_extrinsic_analysis_metrics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@
"from matplotlib import cm\n",
"from collections import Counter\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import graph_functions as graph_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import graph_functions as graph_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"# Read in dictionaries with settings\n",
"%run ../settings/yaml_variables.py\n",
Expand Down Expand Up @@ -1819,7 +1819,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down
8 changes: 4 additions & 4 deletions scripts/COMPARE/3b_extrinsic_analysis_feature_matching.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
"import yaml\n",
"import numpy as np\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import matching_functions as match_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import matching_functions as match_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"# Read in dictionaries with settings\n",
"%run ../settings/yaml_variables.py\n",
Expand Down Expand Up @@ -1146,7 +1146,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down
10 changes: 5 additions & 5 deletions scripts/OSM/1a_initialize_osm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"<div class=\"alert alert-block alert-warning\">\n",
"<b>Troubleshooting</b>\n",
"<p>\n",
"If in the cell below the functions located in the <i>src</i> folder do not load properly: Check that <span style=\"font-family:courier;\">pip install -e .</span> was run successfully (see instructions in <span style=\"font-family:courier;\">README.md</span>).\n",
"If in the cell below the functions located in the <i>bikedna</i> folder do not load properly: Check that <span style=\"font-family:courier;\">pip install -e .</span> was run successfully (see instructions in <span style=\"font-family:courier;\">README.md</span>).\n",
"</p>\n",
"</div>"
]
Expand Down Expand Up @@ -112,10 +112,10 @@
"import numpy as np\n",
"import yaml\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import graph_functions as graph_func\n",
"from src import simplification_functions as simp_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import graph_functions as graph_func\n",
"from bikedna import simplification_functions as simp_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"%run ../settings/plotting.py\n",
"%run ../settings/yaml_variables.py\n",
Expand Down
6 changes: 3 additions & 3 deletions scripts/OSM/1b_intrinsic_analysis_osm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
"import yaml\n",
"from matplotlib import cm, colors\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"%run ../settings/yaml_variables.py\n",
"%run ../settings/plotting.py\n",
Expand Down Expand Up @@ -2405,7 +2405,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:51) [Clang 14.0.4 ]"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down
12 changes: 6 additions & 6 deletions scripts/REFERENCE/2a_initialize_reference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"<div class=\"alert alert-block alert-warning\">\n",
"<b>Troubleshooting</b>\n",
"<p>\n",
"If in the cell below the functions located in the <i>src</i> folder do not load properly: Check that <span style=\"font-family:courier;\">pip install -e .</span> was run successfully (see instructions in <span style=\"font-family:courier;\">README.md</span>).\n",
"If in the cell below the functions located in the <i>bikedna</i> folder do not load properly: Check that <span style=\"font-family:courier;\">pip install -e .</span> was run successfully (see instructions in <span style=\"font-family:courier;\">README.md</span>).\n",
"</p>\n",
"</div>"
]
Expand All @@ -107,10 +107,10 @@
"import osmnx as ox\n",
"import numpy as np\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import graph_functions as graph_func\n",
"from src import simplification_functions as simp_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import graph_functions as graph_func\n",
"from bikedna import simplification_functions as simp_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"%run ../settings/plotting.py\n",
"%run ../settings/yaml_variables.py\n",
Expand Down Expand Up @@ -754,7 +754,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:51) [Clang 14.0.4 ]"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down
6 changes: 3 additions & 3 deletions scripts/REFERENCE/2b_intrinsic_analysis_reference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
"import yaml\n",
"from matplotlib import cm, colors\n",
"\n",
"from src import evaluation_functions as eval_func\n",
"from src import plotting_functions as plot_func\n",
"from bikedna import evaluation_functions as eval_func\n",
"from bikedna import plotting_functions as plot_func\n",
"\n",
"%run ../settings/yaml_variables.py\n",
"%run ../settings/plotting.py\n",
Expand Down Expand Up @@ -1588,7 +1588,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:51) [Clang 14.0.4 ]"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/examples/reference_data_preparation_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"import momepy\n",
"from shapely.ops import linemerge\n",
"\n",
"from src import plotting_functions as pf\n",
"from bikedna import plotting_functions as pf\n",
"%run ../settings/tiledict.py"
]
},
Expand Down
4 changes: 2 additions & 2 deletions scripts/examples/reference_data_preparation_02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"import momepy\n",
"from shapely.ops import linemerge\n",
"\n",
"from src import graph_functions as gf\n",
"from src import plotting_functions as pf\n",
"from bikedna import graph_functions as gf\n",
"from bikedna import plotting_functions as pf\n",
"\n",
"%run ../settings/tiledict.py"
]
Expand Down
2 changes: 1 addition & 1 deletion scripts/settings/yaml_variables.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import yaml
from src import evaluation_functions as ef
from bikedna import evaluation_functions as ef

with open(r"../../config.yml") as file:

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

setup(
name="src",
name="bikedna",
packages=find_packages(),
)
)
4 changes: 0 additions & 4 deletions src.egg-info/PKG-INFO

This file was deleted.

13 changes: 0 additions & 13 deletions src.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion src.egg-info/dependency_links.txt

This file was deleted.

1 change: 0 additions & 1 deletion src.egg-info/top_level.txt

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from shapely.geometry import LineString, Polygon, Point, MultiLineString
import math

from src import evaluation_functions as ef
from bikedna import evaluation_functions as ef

from src import matching_functions as mf
from src import graph_functions as gf
from bikedna import matching_functions as mf
from bikedna import graph_functions as gf

#%%
###################### TESTS FOR EVALUATION FUNCTIONS #############################
Expand Down

0 comments on commit e1c798b

Please sign in to comment.