Closed Neoshika closed 8 years ago
Fixes (each tested separately, both work): A. Add "version = 'fancy'" to the inputs of the cosmicImage from Cosmics.py (line 7) B. Stop trying to give a cosmics version in addCosmics from CCD.py (lines 636-7)
inputs['expose']['skipcosmics'] = False
@Neoshika I would like to write a test to reproduce this bug in the tests/
directory, but I'm confused what you mean by inputs
.
Is this the dictionary that's passed to SPyFFI.Observation
?
A test would greatly help me. I am trying to get rid of the need to set the SPYFFIPATH
environment variable that's being read SPyFFI.cosmical_realistic._cosmical
:
https://github.com/TESScience/SPyFFI/blob/master/cosmical_realistic/cosmical.c#L626
(this is currently breaking setup.py
installation)
A. Add "version = 'fancy'" to the inputs of the cosmicImage from Cosmics.py (line 7) B. Stop trying to give a cosmics version in addCosmics from CCD.py (lines 636-7)
If I make a pull request with the specified changes, can you review it to make sure I'm making the changes correctly?
By inputs I mean the highest level dictionary of dictionaries used as an input for all pieces of the code. The "inputs['expose']['skipcosmics'] = False" is an exact line from demonstration.py or any other script used to drive SPyFFI
Yeah, that's a dictionary passed to SPyFFI.Observation
.
Here's an example I'm using for testing/continuous integration:
FYI, it could just as easily be called options
instead of inputs
.
Turning on cosmic ray generation with
breaks SPyFFI with the following error message