Giter VIP home page Giter VIP logo

Comments (1)

dgarrett622 avatar dgarrett622 commented on July 28, 2024

This error occurs because the Star Catalog prototype is used. The Star Catalog prototype sets all stellar properties as empty arrays. The script which was used sets scaleOrbit=True which requires BrownCompleteness to use the stellar luminosity of the stars in the target list to calculate completeness. When these values are not present, this error is thrown.

To avoid this error, use any of the non-prototype Star Catalog modules (I used EXOCAT1).

When I used EXOCAT1, however, I get an empty Target List due to the int_cutoff_filter():

Traceback (most recent call last):

File "", line 1, in
sim = MissionSim.MissionSim(scriptfile)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\MissionSim.py", line 109, in init
['SimulatedUniverse'],'SimulatedUniverse')(**specs)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\SimulatedUniverse\KeplerLikeUniverse.py", line 23, in init
SimulatedUniverse.init(self, **specs)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\Prototypes\SimulatedUniverse.py", line 89, in init
self.TargetList = get_module(specs['modules']['TargetList'],'TargetList')(**specs)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\Prototypes\TargetList.py", line 137, in init
self.filter_target_list(**specs)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\Prototypes\TargetList.py", line 226, in filter_target_list
self.int_cutoff_filter()

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\Prototypes\TargetList.py", line 330, in int_cutoff_filter
self.revise_lists(i)

File "C:\Users\Daniel\Documents\Cornell\Research\Python_Code_base\EXOSIMS\Prototypes\TargetList.py", line 389, in revise_lists
assert self.nStars, "Target list is empty: nStars = %r"%self.nStars

AssertionError: Target list is empty: nStars = 0

from exosims.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.