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

revisit input product for unit test #96

Open
agrouaze opened this issue Dec 2, 2024 · 1 comment
Open

revisit input product for unit test #96

agrouaze opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@agrouaze
Copy link
Member

agrouaze commented Dec 2, 2024

It would be good to make the test files available on the web and downloadable via xsar.get_test_file or replace it by products already available.

def test_makeL2_generation():
    l1_files = [
        "./test_data/L1/S1A_IW_GRDH_1SDV_20210909T130650_20210909T130715_039605_04AE83_C34F.SAFE",
        "./test_data/L1/RCM1_OK2767220_PK2769320_1_SCLND_20230930_214014_VV_VH_GRD",
        "./test_data/L1/RS2_OK141302_PK1242223_DK1208537_SCWA_20220904_093402_VV_VH_SGF"
    ]
@agrouaze agrouaze added the enhancement New feature or request label Dec 2, 2024
@oceanscoper
Copy link
Collaborator

oceanscoper commented Dec 9, 2024

The tests files are online. In the ci :

        - name: Download test data
          if: steps.cache.outputs.cache-hit != 'true' # Only download if cache miss
          run: |
              mkdir -p ./test_data/
              wget https://cloud.ifremer.fr/index.php/s/ExLQ2TnYAqozPWE/download -O /tmp/ecmwf.zip
              unzip /tmp/ecmwf.zip -d ./test_data/
              wget https://cloud.ifremer.fr/index.php/s/kRgdOOPsjoZieZR/download -O /tmp/l1.zip
              unzip /tmp/l1.zip -d ./test_data/
          timeout-minutes: 200 # Adjust depending on the size of your data

But I agree it could be better !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants