Giter Site home page Giter Site logo

mikeqfu / pyrcs Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 1.08 MB

PyRCS: an open-source tool for collecting railway codes used in different UK rail industry systems

Home Page: https://pyrcs.readthedocs.io

License: GNU General Public License v3.0

Python 100.00%
railway-codes uk-railway crs nlc tiploc stanox electrification elr elr-codes elr-mileage

pyrcs's People

Contributors

firtun avatar mikeqfu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyrcs's Issues

Missing files in sdist

It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.2.6. You're in good company, about 5% of other
projects updated in the last year are also missing files.

+ /tmp/venv/bin/pip3 wheel --no-binary pyrcs -w /tmp/ext pyrcs==0.2.6
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting pyrcs==0.2.6
  Downloading http://10.10.0.139:9191/root/pypi/%2Bf/fad/d9423f9b11cdd/pyrcs-0.2.6.tar.gz (41 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-5d39cnf_/pyrcs/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-5d39cnf_/pyrcs/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-5d39cnf_/pyrcs/pip-egg-info
         cwd: /tmp/pip-wheel-5d39cnf_/pyrcs/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-wheel-5d39cnf_/pyrcs/setup.py", line 22, in <module>
        with open('requirements.txt') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Including PyLint

We're trying to add Pylint to the project so the code can be checked on each Pull request.

`FutureWarning` for `inplace` operation

Related class/method:

  • Stations.collect_locations_by_initial()

When setting update=True, the method can be successfully executed, but the following warning message appears:

... \pyrcs\other_assets\station.py:526: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.

dat['Station'].replace(errata_, regex=True, inplace=True)

This may suggest that the current approach will not work in pandas 3.0 and provides alternative methods to perform the operation in place on the original object.

Locations of signal boxes

Hi, this looks like a great resource. Just wondering if there is any way to derive the geographical location in latitude and longitude (ie not just ELR) of the UK signal boxes. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.