alex.applications.PublicTransportInfoEN.data package¶
Subpackages¶
- alex.applications.PublicTransportInfoEN.data.preprocessing package
- Submodules
- alex.applications.PublicTransportInfoEN.data.preprocessing.compatibility_script_manual module
- alex.applications.PublicTransportInfoEN.data.preprocessing.mta_to_csv module
- alex.applications.PublicTransportInfoEN.data.preprocessing.stops_to_streets_experiment module
- alex.applications.PublicTransportInfoEN.data.preprocessing.us_cities_to_csv module
- Module contents
Submodules¶
alex.applications.PublicTransportInfoEN.data.autopath module¶
self cloning, automatic path configuration
copy this into any subdirectory of pypy from which scripts need to be run, typically all of the test subdirs. The idea is that any such script simply issues
import autopath
and this will make sure that the parent directory containing “pypy” is in sys.path.
If you modify the master “autopath.py” version (in pypy/tool/autopath.py) you can directly run it which will copy itself on all autopath.py files it finds under the pypy root directory.
This module always provides these attributes:
pypydir pypy root directory path this_dir directory where this autopath.py resides
alex.applications.PublicTransportInfoEN.data.database module¶
alex.applications.PublicTransportInfoEN.data.download_data module¶
alex.applications.PublicTransportInfoEN.data.expand_boroughs_script module¶
A script that creates an expansion from a preprocessed list of boroughs
For usage write expand_boroughs_script.py -h
-
alex.applications.PublicTransportInfoEN.data.expand_boroughs_script.
all_to_lower
(site_list)[source]¶
alex.applications.PublicTransportInfoEN.data.expand_cities_script module¶
A script that creates an expansion from a preprocessed list of cities
For usage write expand_cities_script.py -h
alex.applications.PublicTransportInfoEN.data.expand_states_script module¶
A script that creates an expansion from a preprocessed list of states
For usage write expand_states_script.py -h
alex.applications.PublicTransportInfoEN.data.expand_stops_script module¶
A script that creates an expansion from a list of stops
For usage write expand_stops_script.py -h
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
file_check
(filename, message=u'reading file')[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
get_column_index
(header, caption, default)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
handle_compatibility
(file_in, file_out, no_cache=False)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
handle_csv
(csv_in, csv_out, no_cache=False)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
load_list
(filename, skip_comments=True)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
merge
(primary, secondary, surpress_warning=True)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
process_places
(places_in, place_out, places_add, no_cache=False)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
read_compatibility
(filename)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
read_expansions
(stops_expanded_file)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
read_first_column
(filename, surpress_warning=True)[source]¶
-
alex.applications.PublicTransportInfoEN.data.expand_stops_script.
read_two_columns
(filename)[source]¶
alex.applications.PublicTransportInfoEN.data.expand_streets_script module¶
A script that creates an expansion from a list of stops
For usage write expand_stops_script.py -h
alex.applications.PublicTransportInfoEN.data.ontology module¶
-
alex.applications.PublicTransportInfoEN.data.ontology.
add_slot_values_from_database
(slot, category, exceptions=set([]))[source]¶
-
alex.applications.PublicTransportInfoEN.data.ontology.
load_compatible_values
(fname, slot1, slot2)[source]¶