readmecite
Science Score: 18.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: QINGRANLU
- License: other
- Default Branch: main
- Size: 12.7 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Finding the greenest track Group1
Setup:
This is a package called tracknaliser. - greentrack.py : could expose a command-line interface to specify the details of the trip they plan to do and request a simple or verbose output: - inputs: for --start and --end are x and y coordinates for the start and end of the travel planned. - outputs: The program should return three properties for the greenest path: - the coordinates pairs (x, y) of the path, i.e., the start, end and corners of the trip - the total CO2 emission in kg - the total time of travel (as HH:MM:SS). - If the --verbose flag is passed, then that indicates that the program should report the journey in a human readable way, as shown in the example below. - The command line interface should: - check the validity of the inputs before making the query (i.e, coordinates should be in the range from 0 up to 300) and produce helpful messages if they are invalid. \ - produce a meaningful error message if there’s no internet connection or the webapp is inaccessible - loadtracksfile and querytracks functions: return a Tracks object. - querytracks function: takes as many arguments as needed to query the webapp and an optional save argument that if set to True will save the obtained data as a JSON file, with the following patterntracks{date}{ntracks}{start}{end}.json.
Tasks:
Following information are inclued in installing package. Subtasks are fulfilled for the main task required assignment2
In this part, function of each file or folder will be explained.
- Task1:Interface and packaging (packaging the project and make it runnable by typing pip install . in command line)
- command.py: used for print greenest
- tracknaliser.py: library style interface which make interactions with command line tool
- greentrack.py: interface with the greentrack
- docs folder:
- documentation for python file, in ./build/html/index.html could be found the document.
- after code below, documentation will be viewable in a browser at http://localhost:8080
python
cd repository/docs
make html
python -m http.server -d build/html 8080
- Task2: Main Object
- singleTrack.py: Create a singletrack object and calculate the required value (co2, time, etc.)
- trakcs.py: Create a tracks object which contain several singleTrack object and calculate the relative track(fastest, shortest, greenest, etc.)
- Task3: Improving k-means algorithm
- clustering.py: original verson of algorithm with refactoring. 5 changes should be applied
- clustering.numpy.py: numpy structures and functions are introduced.
- performance.py: compare 2 versions of code (used numpy or not)
Task4: Testing and Validation
- utils_validation.py: check the functions input validaty and give correct error type message
- test: automated tests to test functionality, in the test folder
Task5: Collaboration Using Github to manage collaboration, problems are solved using issue, details please check: https://github.com/UCL-MPHY0021-21-22/tracknaliser-Working-Group-1
Owner
- Login: QINGRANLU
- Kind: user
- Repositories: 1
- Profile: https://github.com/QINGRANLU
Citation (CITATION.md)
If you wish to refer to this courseword by tracknaliser-Working-Group-1, or refer to this package, please cite the URL: https://github.com/UCL-MPHY0021-21-22/tracknaliser-Working-Group-1/ Portions of the material related to the webapp: https://ucl-rse-with-python.herokuapp.com/road-tracks/