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

DOC: Replacing git clone command with curl in notebooks. #544

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

Lucas-Prates
Copy link
Contributor

Pull request type

  • ReadMe, Docs and GitHub updates

Checklist

  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/) has passed locally

Current behavior

As described in issue #526, the repository is cloned on four notebooks to obtain the data files required for computations. However, the total size of the data files is, in general, very small (less than 1 MB), and we are cloning more than 1 GB, hence getting a lot of unnecessary information.

New behavior

Instead of using the !git clone, we use the curl command to download only the required data files from raw GitHub user content from RocketPy's repository. The path name for data files also changed accordingly, e.g. "../../data/calisto/powerOffDragCurve.csv" was changed to "powerOffDragCurve.csv" .

Markdown comments were changed to match the commands. Instead of stating we are going to clone the repository, we state that we are downloading the data files.

Breaking change

  • No

Additional information

The dispersion notebooks create two folders "dispersion_analysis_inputs" and "dispersion_analysis_outputs" to save related data files. For those notebooks, we also create the directories when running the data download cells.

@Lucas-Prates Lucas-Prates added the Docs Docs and examples related label Jan 31, 2024
Copy link
Collaborator

@phmbressan phmbressan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea curling them from the repository. The speed and storage improvement upon executing these notebooks now are amazing.

@Gui-FernandesBR Gui-FernandesBR merged commit 435bd62 into develop Feb 5, 2024
@Gui-FernandesBR Gui-FernandesBR deleted the doc/issue-526 branch February 5, 2024 04:27
@Gui-FernandesBR Gui-FernandesBR linked an issue Feb 5, 2024 that may be closed by this pull request
@Gui-FernandesBR Gui-FernandesBR added this to the Release v1.X.0 milestone Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Docs and examples related
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

DOC: stop cloning the whole repository just for examples
4 participants