Giter VIP home page Giter VIP logo

Comments (5)

fjaviersanchez avatar fjaviersanchez commented on September 17, 2024 1

oh, sorry @yymao, I should have clarified. Yeah, I think that for now I'll just hardcode in base.py as it's done for NERSC. If you think that we should use a different approach please feel free to reopen and assign the issue to me :)

from descqa.

fjaviersanchez avatar fjaviersanchez commented on September 17, 2024

If this is a feature that would be useful and is not available yet, I'd be happy to add it :)

from descqa.

yymao avatar yymao commented on September 17, 2024

external_data_dir is supposedly to be a module-wide variable (i.e., all individual tests should share the same value), and that's why it is coded in base.py and not configurable for each test.

Supposedly we can add add a new file descqa/descqa/config.py which stores its value:

__all__ = ["external_data_dir"]
external_data_dir = "/global/cfs/cdirs/lsst/groups/CS/descqa/data"

And then imported this in descqa/descqa/base.py

from . import config
...

class BaseValidationTest(object):
    ...
    external_data_dir = config.external_data_dir 

This way we just need to edit descqa/descqa/config.py at different sites. This approach will be similar to how descqarun and descqaweb do multi-site support; see:

If we want something more sophisticated then we may want to adapt GCRCatalogs approach, which is certainly more involved:
https://github.com/LSSTDESC/gcr-catalogs/blob/master/GCRCatalogs/register.py#L82

from descqa.

fjaviersanchez avatar fjaviersanchez commented on September 17, 2024

Thanks for your reply @yymao! I see, that makes sense. My suggestion was for external_data_dir to become an attribute of the BaseValidationTest class with a default value, which I think it's still inherited by all tests, but I see that it could also cause some problems down the line. I think I'm happy to leave it as it is then. Thanks again!

from descqa.

yymao avatar yymao commented on September 17, 2024

@fjaviersanchez -- I saw you close this issue. Do you think the config approach is not needed? How are you planning to edit the external_data_dir then?

from descqa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.