Coder Social home page Coder Social logo

Testing: test data about catnip HOT 5 CLOSED

metoffice avatar metoffice commented on July 1, 2024
Testing: test data

from catnip.

Comments (5)

nhsavage avatar nhsavage commented on July 1, 2024

On ciid ticket 23, I proposed this:

To allow the code to be more portable and adapt to system changes create a config.py file with site-specific configuration settings.

and then when these are needed do e.g.

>>> import config
>>> samplepath = config.SAMPLE_DATADIR+'sites_cube_list/'

Sample config.py from another project

"""
Contains site-specific configuration settings.
"""
import os

#: Data directory containing sample data (site-specific)
SAMPLE_DATADIR = '/data/users/apdg/python_sample_data/'

#: Location of the top level of this version of the code,
#: based on location of this config.py code.
CODE_DIR = os.path.dirname(os.path.realpath(__file__))+'/../'

#: Location of directory that should be writable to by current user
TEST_DIR = os.path.expandvars("$DATADIR")+'/ADAQ_PythonCode/test'

from catnip.

nhsavage avatar nhsavage commented on July 1, 2024

in the longer term this should be part of the installation process but that's a little way off yet

from catnip.

nhsavage avatar nhsavage commented on July 1, 2024

I have conflated two issues here sorry. I think that we need to cover indpendently:

  1. where the data is stored (perhaps in Github but using git lfs instead of git to track the files). This ticket
  2. How we enable access to the files - see #9

from catnip.

nhsavage avatar nhsavage commented on July 1, 2024

data to be stored in this repo in the first case as small number of files. assign to Zubair

from catnip.

balazagi avatar balazagi commented on July 1, 2024

This has been addressed and merged successfully so can be closed

from catnip.

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.