Display of analyses class in variable explorer

41 views
Skip to first unread message

Divyam Verma

unread,
Sep 18, 2021, 7:43:26 AM9/18/21
to SUAVE FORUM

Hi all,

I am trying to understand the tutorial codes inside out so that I could apply it for my conceptual design of my aircraft and analyze it.

This might be a very basic question but I am not able to view the analyses class in the variable explorer but I can view the configuration class (see code snippet below). Could you guys help me with this? I know that there is a class/public function definition in SUAVE which I could used for writing analyses class in JSON format, but I want to be able to view analyses at the variable explorer because that will help me understand the SUAVE framework a lot better

Everything else is working just fine. I am using Spyder 4.0 for scripting the code.

def main():
    configuration, analyses = full_setup()
    return configuration, analyses

################################################

def full_setup():
    
    # the baseline aircraft
    vehicle=vehicle_setup()
    
    #  get the analyses
    configs=configs_setup(vehicle)
    configs_analyses=analyses_setup(configs) 
    
    # mission that the aircraft will be flown in
    base_mission=mission_setup(configs_analyses,vehicle)
    missions_analyses=missions_analyses_setup(base_mission)
    
    analyses=SUAVE.Analyses.Analysis.Container()
    analyses.configs=configs_analyses              
    analyses.missions=missions_analyses             
   
    return configs, analyses

#################################################

configuration, analyses = main()

##################################################

Much help appreciated! Thanks!

ebot...@gmail.com

unread,
Sep 23, 2021, 5:00:50 PM9/23/21
to SUAVE FORUM
Hi,
Maybe someone else who uses Spyder can chime in? I don't use Spyder, so I haven't seen this error.

-Emilio

Divyam Verma

unread,
Oct 4, 2021, 5:39:44 AM10/4/21
to SUAVE FORUM
Solved the error thanks.
Reply all
Reply to author
Forward
0 new messages