Comments (5)
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.
If this is a feature that would be useful and is not available yet, I'd be happy to add it :)
from descqa.
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:
- https://github.com/LSSTDESC/descqa/blob/master/descqarun/config.py
- https://github.com/LSSTDESC/descqa/blob/master/descqaweb/config.py
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.
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.
@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)
- Update CheckColors test to be compatible with DM outputs HOT 5
- Tree ring test
- validate instance catalogs to filter out offending AGN HOT 3
- number counts test updates HOT 6
- Update DESCQA web app's landing page HOT 4
- Ability to "tag" a run after the run is complete
- `sklearn.cluster.k_means` not working when `n_jobs=-1` is set HOT 1
- README is pointing to jupyter-dev
- Segmentation fault running some correlation function tests HOT 2
- Shear Test fails due to OSError: libgfortran.so.3: cannot open shared object file: No such file or directory HOT 7
- shear_test fails due to camb attribute error
- Move from project/projecta to cfs
- Python Environment Name Change stack => desc HOT 1
- Need to update versions of gsl and cray-fftw in run_master.sh HOT 2
- Set HDF5_USE_FILE_LOCKING=FALSE in run_master.sh
- Make DESCQA compatible with new desc-python environment HOT 6
- Revert to using the desc-python env at NERSC
- Experiment with generalizing tests beyond GCRCatalogs HOT 3
- Versioning of releases and plans any plans for an updated release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from descqa.