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

Support local paths for InputDataset.source #30

Merged
merged 5 commits into from
Aug 20, 2024

Commits on Aug 20, 2024

  1. Add ability for source attribute in InputDataset to be a local path:

    - add _get_source_type method in utils (returns 'url' or 'path')
    - add call to _get_source_type in InputDataset.__init__() which updates local_path and exists_locally if 'path'
    - add logic to InputDataset.get() which creates a local symbolic link to the dataset path if it is elsewhere on the system
    - update InputDataset.check_exists_locally() to reflect above changes
    “Dafydd committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    4fe22bd View commit details
    Browse the repository at this point in the history
  2. fix found bugs in cstar_case.py when running Case.from_blueprint() on…

    … yaml created with Case.persist()
    “Dafydd committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    7e24a5a View commit details
    Browse the repository at this point in the history
  3. Modify tests/test_roms_marbl_example.py to add a second section which:

    - Modifies the blueprint created by the first case to use local paths to input datasets where available
    - Creates and runs a second case `roms_marbl_local_case` from this blueprint
    “Dafydd committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    1a47dbf View commit details
    Browse the repository at this point in the history
  4. Changes to example notebook and environment.yml addressing #18,#21,#22,

    …#23; fix bug caught by pre-commit in cstar_case.py
    “Dafydd committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    d0ba139 View commit details
    Browse the repository at this point in the history
  5. update docstring for InputDataset.get()

    “Dafydd committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b032dcc View commit details
    Browse the repository at this point in the history