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

Code cleanup #147

Merged
merged 12 commits into from
Jun 8, 2021
Merged

Code cleanup #147

merged 12 commits into from
Jun 8, 2021

Conversation

TheGreatRefrigerator
Copy link
Collaborator

No description provided.

ORStools/__init__.py Outdated Show resolved Hide resolved
ORStools/gui/ORStoolsDialog.py Show resolved Hide resolved
ORStools/common/client.py Show resolved Hide resolved
ORStools/gui/ORStoolsDialog.py Outdated Show resolved Hide resolved
ORStools/proc/base_processing_algorithm.py Show resolved Hide resolved
ORStools/proc/base_processing_algorithm.py Show resolved Hide resolved
ORStools/common/isochrones_core.py Show resolved Hide resolved
ORStools/proc/isochrones_layer_proc.py Show resolved Hide resolved
ORStools/proc/isochrones_layer_proc.py Show resolved Hide resolved
ORStools/proc/isochrones_point_proc.py Show resolved Hide resolved
@koebi
Copy link
Collaborator

koebi commented Jun 8, 2021

Regarding 8b243b8 - reformatting should be done after this by an automated tool, see #141.
In addition, the .ui and …UI.py-files are auto-generated by qt designer and pyuic5, so reformatting them might actually make following changes less readable, since regenerating will overwrite the formatting.

@koebi koebi closed this Jun 8, 2021
@koebi koebi reopened this Jun 8, 2021
switch from old OpenRouteService spelling to openrouteservice

refers to #133
Add inspection exception where variables are needed for
underlying c functions that are not imported correctly
by the python wrapper

refers to #133
Add inspection exceptions where references
can't be found due to wrapper types

refers to #133
Removes redundancies in processing algorithm classes by
creating the ORSBaseProcessingAlgorithm class.

Moved to base class:
- basic attributes and functions
- provider and output parameter
- algorithm and ors_client initialization

Other notable changes:
- moved from class to instance attribute approach
- clean algorithm class naming
- build_default_parameters moved to directions_core
- easier access to input values in processAlgorithm()
- rename of help files for dynamic loading
- moved from lookupField() to indexOf()

closes #133
@TheGreatRefrigerator
Copy link
Collaborator Author

Regarding 8b243b8 - reformatting should be done after this by an automated tool, see #141.
In addition, the .ui and …UI.py-files are auto-generated by qt designer and pyuic5, so reformatting them might actually make following changes less readable, since regenerating will overwrite the formatting.

removed the reformatting commit

@koebi
Copy link
Collaborator

koebi commented Jun 8, 2021

Looks good to me :)

@koebi koebi merged commit e693768 into master Jun 8, 2021
@koebi koebi deleted the code_cleanup branch June 8, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants