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

How do I create a tradebook? #125

Open
DM1122 opened this issue Nov 2, 2023 · 2 comments
Open

How do I create a tradebook? #125

DM1122 opened this issue Nov 2, 2023 · 2 comments

Comments

@DM1122
Copy link
Collaborator

DM1122 commented Nov 2, 2023

What is a tradebook? How can I create one?

Copy link

dosubot bot commented Nov 2, 2023

🤖

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.

Copy link

dosubot bot commented Nov 3, 2023

🤖

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.

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

1 participant