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

html_report "feed_publisher_name" not available #19

Open
r-leyshon opened this issue Jun 27, 2024 · 0 comments
Open

html_report "feed_publisher_name" not available #19

r-leyshon opened this issue Jun 27, 2024 · 0 comments
Labels
bug Something isn't working report

Comments

@r-leyshon
Copy link
Contributor

Describe the bug

Running the tutorial at docs/tutorials/index.qmd, I started to include a demonstration of using multiGtfsInstance to produce a html report like so:

report_pth = feed.instances[0].gtfs_path.replace(".zip", "")
feed.instances[0].html_report(report_dir=report_pth)

This resulted in the 2 following warnings:

DataFrame.applymap has been deprecated. Use DataFrame.map instead.

KeyError. Feed was not cleaned.

and the following error:

TypeError                                 Traceback (most recent call last)
(https://file+.vscode-resource.vscode-cdn.net/Users/.../assess_gtfs/~/Documents/assess_gtfs/src/assess_gtfs/validation.py:1487)     "name_placeholder", self.feed.feed_info["feed_publisher_name"][0]

TypeError: 'NoneType' object is not subscriptable

Environment

  • OS: macos
  • Python version: 3.11.9
  • Java version: openjdk 11.0.19 2023-04-18 LTS
  • Python module versions (if different from requirements.txt): NA

Expected behavior

If feed_publisher_name is not available, populate with a placeholder, such as 'no publisher name was provided'.

@r-leyshon r-leyshon added bug Something isn't working report labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working report
Projects
None yet
Development

No branches or pull requests

1 participant