Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook example broken? #86

Closed
ngbusca opened this issue Mar 3, 2018 · 4 comments
Closed

notebook example broken? #86

ngbusca opened this issue Mar 3, 2018 · 4 comments

Comments

@ngbusca
Copy link

ngbusca commented Mar 3, 2018

No description provided.

@ngbusca
Copy link
Author

ngbusca commented Mar 3, 2018

I'm trying to run the notebook example SimulationExamples. When running the config step:

desi = specsim.simulator.Simulator('desi', num_fibers=500)

I get an error:


RuntimeError Traceback (most recent call last)
in ()
----> 1 desi = specsim.simulator.Simulator('desi', num_fibers=500)

/Users/ngbusca/anaconda2/lib/python2.7/site-packages/specsim-0.12.dev764-py2.7.egg/specsim/simulator.pyc in init(self, config, num_fibers, camera_output, verbose)
73 # Initalize our component models.
74 self.atmosphere = specsim.atmosphere.initialize(config)
---> 75 self.instrument = specsim.instrument.initialize(config, camera_output)
76 self.source = specsim.source.initialize(config)
77 self.observation = specsim.observation.initialize(config)

/Users/ngbusca/anaconda2/lib/python2.7/site-packages/specsim-0.12.dev764-py2.7.egg/specsim/instrument.pyc in initialize(config, camera_output)
669 raise RuntimeError(
670 'Cannot find file {}. May need to update desimodel svn ?'
--> 671 .format(filename))
672 fast_fiber_acceptance = specsim.fastfiberacceptance.FastFiberAcceptance(
673 filename)

RuntimeError: Cannot find file /Users/ngbusca/Boulot/DESI/desimodel/data/throughput/galsim-fiber-acceptance.fits. May need to update desimodel svn ?

@ngbusca
Copy link
Author

ngbusca commented Mar 3, 2018

Indeed, the file galsim-fiber-acceptance.fits is missing... is it supposed to be shipped with specsim or should I get it from somewhere else?

@sbailey
Copy link
Contributor

sbailey commented Mar 3, 2018

Yes, indeed, update desimodel svn to get data/throughput/galsim-fiber-acceptance.fits, which was added last October at the time of specsim PR #81.

@ngbusca
Copy link
Author

ngbusca commented Mar 3, 2018

Yep, svn update in $DATAMODEL fixed it! Thanks @sbailey

@ngbusca ngbusca closed this as completed Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants