utat-ss / architect

Systems engineering tool built by the University of Toronto Aerospace Team
The Unlicense
8 stars 1 forks source link

How do I create a tradebook? #125

Open DM1122 opened 1 year ago

DM1122 commented 1 year ago

What is a tradebook? How can I create one?

dosubot[bot] commented 1 year ago

🤖

Hello @DM1122,

I'm Dosu, a bot here to assist you with bugs, answer your questions, and guide you on your journey to becoming a contributor. I'm here to support you while we wait for a human maintainer. Looking forward to helping you!

Best, Dosu

Give me a moment to look at your issue. I'll post a detailed answer shortly.

dosubot[bot] commented 1 year ago

🤖

A tradebook in the context of the Architect tool is essentially an interactive Python notebook that is used to conduct tradeoff analyses and visualizations. It serves as the interface through which Architect's library of systems are connected together to run meaningful analyses.

To create a tradebook, you would need to create a new Python notebook file (.ipynb) and write Python code to import and use the systems from the Architect library. The code would typically involve defining the systems to be used, setting up the tradeoff analysis, running the analysis, and then visualizing the results.

For multi-dimensional visualization, you can use the hypercast() function. This function converts the input of multiple 1D arrays into multiple hypercubes that can be described by an n-dimensional array. You can then use the plot dependency to create different types of multi-dimensional visualizations: a line plot, a scatter plot, a 3D scatter plot, and a surface plot.

After generating the plots, you can use the style_to_matlab(fig) function to format it as a matlab figure. This requires a plot as its only argument. Additionally, you use the save(fig, name: str, path: Path) function to save it as a file.

Unfortunately, I wasn't able to find specific steps to create a new Python notebook file (.ipynb) in the Architect repository. However, creating a new Python notebook is a standard process and can be done using Jupyter Notebook or Jupyter Lab. Here are the general steps:

  1. Open Jupyter Notebook or Jupyter Lab.
  2. Navigate to the directory where you want to create the notebook.
  3. Click on 'New' and select 'Python 3' to create a new notebook.
  4. The new notebook will open in a new tab. You can rename it by clicking on the current name (Untitled) at the top of the page.

Once the notebook is created, you can start writing your Python code to create your tradebook.

Please note that these are general steps and might vary slightly based on your specific setup or requirements. If you need more specific instructions or if you encounter any issues, please provide more details so I can assist you better.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.