Skip to content

Conversation

@1Maxnet1
Copy link
Contributor

@1Maxnet1 1Maxnet1 commented Mar 6, 2025

I usually do not test the whole planet locally, but only certain countries or complete Europe. So this allows to generate a configuration file. The selection of countries is based on the list in #114 This could relatively easily be extended to allow for other areas, if there is demand. Also if you have any hints on how to do this more elegantly, I'm happy to hear it.

errors = fetcher.fetch(Path(metadata_file))
selector = sys.argv[1]
errors = 0
if selector == "europe":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally have ci/fetch-feeds.py for fetching multiple regions. Maybe create a new similar script for this. Having too many special cases always bears the risk of breaking some of them with every change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So instead of adding it here, creating a python script generate-continent-config.py ? Would be fine by me as well.

@1Maxnet1 1Maxnet1 force-pushed the work/maxnet/create-europe-config branch from 32927a6 to 3374e6c Compare March 14, 2025 07:45
@1Maxnet1 1Maxnet1 force-pushed the work/maxnet/create-europe-config branch from b800599 to e7beb62 Compare April 3, 2025 09:15
@1Maxnet1 1Maxnet1 force-pushed the work/maxnet/create-europe-config branch from e7beb62 to 3642653 Compare April 23, 2025 16:03
1Maxnet1 added 2 commits May 2, 2025 10:31
@1Maxnet1 1Maxnet1 force-pushed the work/maxnet/create-europe-config branch from 3642653 to 404cc40 Compare May 2, 2025 08:31
# Conflicts:
#	src/fetch.py
#	src/generate-motis-config.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants