Skip to content

Commit

Permalink
style: fixed line endings at EOF and ran the code through black
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 10, 2023
1 parent acf7c5b commit d0f1b01
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ doc/*.pdf
tmp/

modules/skybrush
modules/pyledctrl
modules/pyledctrl
1 change: 0 additions & 1 deletion assets/icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ for Windows:
https://icoconvert.com/

Favicon was generated with https://favicon.io

1 change: 0 additions & 1 deletion assets/icons/win/icon.rc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
IDI_ICON1 ICON DISCARDABLE "skybrush.ico"

1 change: 0 additions & 1 deletion doc/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ title: Skybrush Studio for Blender
version: latest
nav:
- modules/ROOT/nav.adoc

1 change: 0 additions & 1 deletion doc/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ image::skybrush_studio_for_blender_small.jpg[Skybrush Studio for Blender]
To get a quick overview of the drone show design process with *Skybrush Studio for Blender*, we recommend to familiarize yourself with the xref:concepts.adoc[basic concepts] first, and then read the tutorial titled xref:tutorials/easy-drone-show-design.adoc[Quick guide to drone show design with Skybrush Studio].

To get a comprehensive understanding of all features and tools, please use the left sidebar for browsing the full documentation. We also encourage you to mailto:[email protected][contact us] in case of any questions.

2 changes: 1 addition & 1 deletion doc/modules/ROOT/pages/panels/formations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ The Formations tab contains three panels:

* xref:panels/formations/swarm.adoc[Swarm panel]
* xref:panels/formations/formations.adoc[Formations panel]
* xref:panels/formations/storyboard.adoc[Storyboard panel]
* xref:panels/formations/storyboard.adoc[Storyboard panel]
2 changes: 0 additions & 2 deletions doc/modules/ROOT/pages/panels/formations/formations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ image::panels/formations/formation_stats.jpg[Formation stats]
== Appending a formation to the storyboard

Press the btn:[Append to Storyboard] button to append the selected formation to the end of the storyboard. *Skybrush Studio* will calculate the time needed to move from the end of the last formation to the newly added formation, according to the current acceleration and velocity limits, and set up the start time of the new formation accordingly.


2 changes: 0 additions & 2 deletions doc/modules/ROOT/pages/panels/leds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ The LEDs tab contains two panels:

* xref:panels/leds/led_control.adoc[LED Control panel]
* xref:panels/leds/light_effects.adoc[Light Effects panel]
1 change: 0 additions & 1 deletion etc/scripts/_build_macos_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ hdiutil create \
-ov \
-format UDZO \
"${OUTPUT_DIR}/${NAME} ${VERSION}.dmg"

1 change: 0 additions & 1 deletion etc/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ for dependency in natsort pyledctrl skybrush svgpathtools svgwrite webcolors; do
ln -s "${VENV_PYTHONPATH}/${dependency}"
fi
done

1 change: 0 additions & 1 deletion etc/scripts/bootstrap_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ mklink /D dev\vendor\skybrush\skybrush %SKYBRUSH_ROOT%\src\skybrush
FOR %%A in (jsonref.py proxytypes.py) DO mklink dev\vendor\skybrush\%%A %VENV_PYTHONPATH%\%%A

cd etc/scripts

1 change: 0 additions & 1 deletion etc/scripts/create_blender_dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@ if [ "x${BOOTLOADER_DIR}" != x ]; then
echo "Single-file Windows executable created successfully in ${OUTPUT_DIR}/${ZIP_STEM}-win64.exe"
echo "macOS launcher created successfully in ${OUTPUT_DIR}"
fi

1 change: 0 additions & 1 deletion poetry.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[virtualenvs]
in-project = true

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ select = ["B", "C", "E", "F", "W"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

4 changes: 2 additions & 2 deletions src/modules/sbstudio/math/nearest_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _nearest_neighbors_divide_and_conquer(points):
principal_axis = points.ptp(axis=0).argmax()
points = points[points[:, principal_axis].argsort(), :]
p, q, dist_sq = _nearest_neighbors_divide_and_conquer_step(points, principal_axis)
return p, q, dist_sq ** 0.5
return p, q, dist_sq**0.5


def _nearest_neighbors_divide_and_conquer_step(points, principal_axis):
Expand Down Expand Up @@ -91,7 +91,7 @@ def _nearest_neighbors_divide_and_conquer_step(points, principal_axis):

# Look for any potential improvements _between_ the two halves
p3, q3, dist_sq_split = _nearest_neighbors_find_closest_split_pair(
points, principal_axis, mid_index, midpoint, dist_sq_nonsplit ** 0.5
points, principal_axis, mid_index, midpoint, dist_sq_nonsplit**0.5
)
if dist_sq_nonsplit <= dist_sq_split:
return closest_nonsplit_solution
Expand Down
1 change: 0 additions & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ search = 'version = "{current_version}"'
src = "src/addons/ui_skybrush_studio.py"
version_template = "({major}, {minor}, {patch})"
search = '"version": {current_version}'

0 comments on commit d0f1b01

Please sign in to comment.