Comments (5)
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.
in the longer term this should be part of the installation process but that's a little way off yet
from catnip.
I have conflated two issues here sorry. I think that we need to cover indpendently:
- where the data is stored (perhaps in Github but using git lfs instead of git to track the files). This ticket
- How we enable access to the files - see #9
from catnip.
data to be stored in this repo in the first case as small number of files. assign to Zubair
from catnip.
This has been addressed and merged successfully so can be closed
from catnip.
Related Issues (20)
- significant digits
- doctests for new extract_rot_cube fail HOT 1
- Support for user specified projection in vector plot function HOT 2
- Documentation and Licence test
- feature_update_action HOT 1
- Update documentation HOT 3
- fix pytests
- use requirement.txt in setup.py
- Update actions with MO default-current and current-next
- Implement version tags
- Conda installable
- Deploy on project disk for MO
- Updated documentation and instructions
- List more features
- Feature: add domain plotter code
- Masking without ASCEND - part 1 getting country shapefiles by name
- Masking without ASCEND - part 2 applying a mask to a cube
- Add copyright headers to all files HOT 1
- add CONTRIBUTING.md
- update conda envs used in testing
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 catnip.