Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Bump black from 23.1.0 to 24.3.0 #1049

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nexus-constructor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Entry script for the nexus constructor application.
"""

import argparse
import logging
import os
Expand Down
6 changes: 3 additions & 3 deletions nexus_constructor/add_component_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def _cancel_edit_group(self):
if self._confirm_cancel():
if self._group_parent:
self._group_parent.children.remove(self._group_container.group)
self._group_parent[
self._group_to_edit_backup.name
] = self._group_to_edit_backup
self._group_parent[self._group_to_edit_backup.name] = (
self._group_to_edit_backup
)
else:
self.model.entry = self._group_to_edit_backup # type: ignore
self.component_model.tree_root = self.model.entry
Expand Down
6 changes: 3 additions & 3 deletions nexus_constructor/component_tree_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ def add_transformation(self, parent_index: QModelIndex, transformation_type: str
if transformation_list.has_link:
transformation_list.link.linked_component = linked_component
if linked_component is not None:
transformation_list[
-1
].depends_on = transformation_list.link.linked_component.transforms[0]
transformation_list[-1].depends_on = (
transformation_list.link.linked_component.transforms[0]
)
self.model.signals.transformation_changed.emit()
self.model.signals.group_edited.emit(component_index, True)

Expand Down
25 changes: 16 additions & 9 deletions nexus_constructor/instrument_view/off_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
and a PyQt5 example from
https://github.com/geehalel/npindi/blob/57c092200dd9cb259ac1c730a1258a378a1a6342/apps/mount3D/world3D-starspheres.py#L86
"""

import itertools
import struct
from typing import List, Tuple
Expand Down Expand Up @@ -182,9 +183,11 @@ def __init__(

triangles = convert_faces_into_triangles(
faces,
ProgressBar(len(faces), "Shape conversion progress")
if use_progress_bar
else None,
(
ProgressBar(len(faces), "Shape conversion progress")
if use_progress_bar
else None
),
)

if len(triangles) > 100000 and allow_simplification:
Expand Down Expand Up @@ -214,16 +217,20 @@ def __init__(
normal_buffer_values = create_normal_buffer(
vertices,
triangles,
ProgressBar(len(triangles), "Vector buffer creation")
if use_progress_bar
else None,
(
ProgressBar(len(triangles), "Vector buffer creation")
if use_progress_bar
else None
),
)
color_buffer_values = create_color_buffer(
self.vertex_count,
model.colors,
ProgressBar(len(model.colors), "Material creation")
if use_progress_bar
else None,
(
ProgressBar(len(model.colors), "Material creation")
if use_progress_bar
else None
),
)
positionAttribute = self.create_attribute(
vertex_buffer_values, self.q_attribute.defaultPositionAttributeName()
Expand Down
2 changes: 1 addition & 1 deletion nx-class-documentation/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 62889735085e14bf6b77587483073aad
config: abbd629125c742bed74fb1c209c7edd8
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion nx-class-documentation/html/applying-nexus.html
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion nx-class-documentation/html/authorgroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion nx-class-documentation/html/classes/applications/NXmx.html
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; <a href="../../copyright.html">Copyright</a> 1996-2023, NIAC, https://www.nexusformat.org.
&#169; <a href="../../copyright.html">Copyright</a> 1996-2024, NIAC, https://www.nexusformat.org.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.1.2.
</div>
</body>
Expand Down
Loading
Loading