Skip to content

Commit

Permalink
rename features.py to feature.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeqfu committed Oct 22, 2020
1 parent 750e50c commit 1d9645f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pyrcs/other_assets/features.py → pyrcs/other_assets/feature.py
@@ -1,12 +1,13 @@
""" Collecting codes of infrastructure features.
"""
Collect codes of infrastructure features.
This category includes:
- OLE neutral sections
- HABD and WILD
- Water troughs
- Telegraph codes
- Driver/guard buzzer codes
- `OLE neutral sections <http://www.railwaycodes.org.uk/electrification/neutral.shtm>`_
- `HABD and WILD <http://www.railwaycodes.org.uk/misc/habdwild.shtm>`_
- `Water troughs <http://www.railwaycodes.org.uk/misc/troughs.shtm>`_
- `Telegraph codes <http://www.railwaycodes.org.uk/misc/telegraph.shtm>`_
- `Driver/guard buzzer codes <http://www.railwaycodes.org.uk/misc/buzzer.shtm>`_
"""

import copy
Expand All @@ -24,7 +25,7 @@
from pyhelpers.ops import confirmed, fake_requests_headers
from pyhelpers.store import load_pickle, save_pickle

from pyrcs.line_data.electrification import Electrification
from pyrcs.line_data.elec import Electrification
from pyrcs.utils import cd_dat, get_catalogue, get_last_updated_date, homepage_url


Expand Down Expand Up @@ -710,7 +711,7 @@ def fetch_features_codes(self, update=False, pickle_it=False, data_dir=None,
features_codes.append(getattr(self, func)(update=update, verbose=verbose))

elec = Electrification()
ohns_codes = elec.fetch_codes_for_ohns(update=update, verbose=verbose)
ohns_codes = elec.fetch_ohns_codes(update=update, verbose=verbose)
features_codes.append(ohns_codes)

features_codes_data = {
Expand Down

0 comments on commit 1d9645f

Please sign in to comment.