skinkie / reference

Personal repository where I collect working examples to understand inner workings while building PyNeTExConv
GNU Affero General Public License v3.0
1 stars 1 forks source link

Project structure #132

Closed davidr1234 closed 1 month ago

davidr1234 commented 1 month ago

@skinkie @ue71603

Before re-visiting the documentation (https://github.com/skinkie/reference/issues/129) I'd like to give our folder structure a re-juvination. Hoping this is not a duplicate

Here's a suggestion for it - if agreed upon I'd open a feature-branch for it

IMPORTANT: I only write about gtfs-netex-test. -> I would almost argue opening a repo only for the data in this folder. At the moment the whole repo appears a bit "cluttered".

folder structure:

transform_scripts # contains all main scripts to transform among the standards

models # code for modelling data structures

utils # code used to support the transformation and analysis of the data

tests # contains tests, such as the pipelines @ue71603 created in aux_tests.txt

conf # any configuration files, e.g., siri.conf, requirements.txt, etc.

ALSO: I will create a "code_looking_for_a_home" folder for all code I could not clearly assing to any of the above folders


MORE: I suggest removing the following folders from the official branch, as they seem to be folders and files that you respectively use for local purposes

skinkie commented 1 month ago

I have already tested folders, this won't work for 'main scripts' because of the imports should be relative. The transform folder contains the current projection code (a true transitive concept-to-concept translation). The import functionality to get for example GTFS, HAFAS, IFF or Optibus into NeTEx-concetps could be in a separate folder. I don't think the 'utils' subfolder idea with folders under it is something I would support.

As discussed with @ue71603 before, no data examples in the repo itself.

requirements.txt must be also in the 'root' folder of the project.

netexrrrr is an export script for NeTEx to rrrr (so something like the db-to-gtfs).

ue71603 commented 1 month ago

Stefan will clean up his files and I do mine. We keep the scripts where they are. input/output won't be in here. scripts and assertionswill be stored in the folder scripts then the aux_-folders will beremoved.

If ok, I close this one here.