Comments (7)
For background on this issue see desihub/desisim#93.
from desimodel.
I like get_specsim_config()
, but should it return a yaml file, or the contents that would have been loaded from said yaml file? I think the latter is cleaner if that can be made compatible with specsim, since it doesn't involve making a temporary file just so that specsim can read it back in.
I had originally been thinking that we would provide a script in desimodel to convert its contents (including desimodel/data/desi.yaml) into a specsim_desi.yaml file that would also be kept in desimodel. But that requires humans to remember to update specsim_desi.yaml when desi.yaml is updated. Fragile. Doing it on the fly with get_specsim_config()
is nice, at the cost of not having a file directly in github that is already the canonical file to use.
from desimodel.
@dkirkby, I'm assigning this to you so that you can assign it to someone who can resolve this issue.
from desimodel.
what about returning a dict instead of a file? It sounds strange to serialize and deserialize; plus the load_config API can't handle string input anyways.
import desimodel
from specsim.config import Configuration
specsimconfig = Configuration(desimodel.get_specsim_config())
...
...
from desimodel.
Can this be resolved so that we can create (or not create) a data model for the file(s)?
from desimodel.
I can take care of this but I'm not sure if this is still the direction we want to go. @sbailey ?
from desimodel.
We do want to move the filter curves over to desispec, but this is very low priority for now.
from desimodel.
Related Issues (20)
- update xy2radec and radec2xy to support airmass field compression terms
- Add focalplane model support for stuck / broken position
- Add support for CANbus failures in focalplane model HOT 1
- Use instrument database for generating focalplane model HOT 2
- update/deprecate fiberpos.fits HOT 6
- DESIMODEL SVN data? HOT 2
- Update platescale to as-built design from DESI-4037 HOT 2
- Mechanism for getting current "nominal" focalplane HOT 1
- Convert focalplane model times to UTC
- Update throughput model to include dip between 4300 and 4500A HOT 3
- Add information about fibers with low transmission
- Outdated desimodel test branches. HOT 1
- astropy 5 not compatible with focalplane calibration ecsv HOT 13
- desiInstall desimodel branches/main fails
- Remove fix-tiles branch? HOT 1
- update psf-quicksim HOT 3
- Update api.rst
- Problem with new version of numpy HOT 5
- io.load_tiles defaults to old tile list $DESIMODEL/data/footprint/desi-tiles.fits HOT 6
- Error with get_tile_radius_deg when loading platescale HOT 4
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 desimodel.