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

Missing class designation #136

Open
Russell-Ryan opened this issue Jul 27, 2021 · 0 comments
Open

Missing class designation #136

Russell-Ryan opened this issue Jul 27, 2021 · 0 comments
Assignees
Milestone

Comments

@Russell-Ryan
Copy link

In the file, instrument.py there appears to be an issue on lines 688, 690, 692, where the self. is missing on the call to the class method convertToCounts(). I got this error in the traceback:


 File "example.py", line 92, in <module>
    run_stips(catname,'myimages')
  File "example.py", line 71, in run_stips
    name=obm.addCatalogue(catname)
  File "/Users/rryan/Roman/Tickets/INC0170043/STScI-STIPS-master/stips/observation_module/observation_module.py", line 253, in addCatalogue
    cats = self.instrument.addCatalogue(catalogue, self.id, *args, **kwargs)
  File "/Users/rryan/Roman/Tickets/INC0170043/STScI-STIPS-master/stips/instruments/instrument.py", line 275, in addCatalogue
    cat = self.convertCatalogue(catalogue, obs_num)
  File "/Users/rryan/Roman/Tickets/INC0170043/STScI-STIPS-master/stips/instruments/instrument.py", line 388, in convertCatalogue
    return self.handleConversion(catalogue, table_type, obsname)
  File "/Users/rryan/Roman/Tickets/INC0170043/STScI-STIPS-master/stips/instruments/instrument.py", line 442, in handleConversion
    out_chunk, cached = cat_function(current_chunk, bp, cached)
  File "/Users/rryan/Roman/Tickets/INC0170043/STScI-STIPS-master/stips/instruments/instrument.py", line 688, in readMixedTable
    rates[idxp] *= convertToCounts('p')
NameError: name 'convertToCounts' is not defined
@york-stsci york-stsci added this to the 2.0.0 milestone Oct 5, 2021
@york-stsci york-stsci self-assigned this Oct 5, 2021
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