Skip to content

Commit

Permalink
STYLE: Ensure source files line ending is consistent
Browse files Browse the repository at this point in the history
Makes sure files end in a newline and only a newline.

This commit updates the sources files based on the automatic fixes
applied using the "end-of-file-fixer" pre-commit hook introduced in
the subsequent commit.
  • Loading branch information
jcfr committed Aug 19, 2024
1 parent 127dfc2 commit 04647b3
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 34 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]

1 change: 0 additions & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ _These instructions are untested and maybe obsolete._
5. Run `docker build -t "autoscoper_dev_ubuntu:latest" -f ./UbuntuDockerFile .`
6. Find your IP address (using `ipconfig` on Windows or `ifconfig` on Unix)
7. Run `docker run --rm -it --gpus all -e DISPLAY=<IP>:0.0 --name autoscoper_ubuntu autoscoper_dev_ubuntu:latest`

2 changes: 1 addition & 1 deletion CMake/ExternalProjectDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1131,4 +1131,4 @@ function(ExternalProject_AlwaysConfigure proj)
DEPENDEES build
ALWAYS 1
)
endfunction()
endfunction()
1 change: 0 additions & 1 deletion CMake/FindFilesystem.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,3 @@ set(Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using st
if(Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND)
message(FATAL_ERROR "Cannot run simple program using std::filesystem")
endif()

2 changes: 1 addition & 1 deletion CMake/PreventInSourceBuilds.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ function(AssureOutOfSourceBuilds)
endif()
endfunction()

AssureOutOfSourceBuilds()
AssureOutOfSourceBuilds()
2 changes: 1 addition & 1 deletion Documentation/adv-topics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:caption: Contents
remote-gpu-setup.md
```
```
2 changes: 1 addition & 1 deletion Documentation/developer-guide/building-autoscoper.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
```{include} ../../BUILD.md
```
```
2 changes: 1 addition & 1 deletion Documentation/developer-guide/contributing.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
```{include} ../../CONTRIBUTING.md
```
```
2 changes: 1 addition & 1 deletion Documentation/file-specifications/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ VoxelSize 0.1 0.1 0.1
RenderResolution 512 512
OptimizationOffsets 0.1 0.1 0.1 0.1 0.1 0.1
```
```
2 changes: 1 addition & 1 deletion Documentation/file-specifications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Below is a list of file specifications for various input and output files used b
config.md
camera-calibration.md
filter-file.md
```
```
1 change: 0 additions & 1 deletion Documentation/get-help.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ If you cannot find a similar feature request, then write a post in the [SlicerAu
## I Would Like to share how Autoscoper helped me in my research

Please send us the citation for your paper posting in the [SlicerAutoscoperM category](https://discourse.slicer.org/c/community/slicerautoscoperm/30) on the Slicer Discourse. We would love to hear how Autoscoper helped you in your research.

1 change: 0 additions & 1 deletion Documentation/socket-control-libraries/pyautoscoper.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,3 @@ It may be useful to launch Autoscoper from Python. This can be done by using the
:undoc-members:
:show-inheritance:
```

2 changes: 1 addition & 1 deletion Documentation/tutorials/tips-and-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This tutorial contains a collection of tips and tricks for aligning partial volu

To help align a partial volume, it may be beneficial to remove a degree of freedom, temporarily, from the translational movement. To do this, you need to rotate the partial volume until one of the axes is no longer visible when in translation mode. For example, if you want to remove the x-axis from the translation, you need to rotate the partial volume until the x-axis is no longer visible. This can be done by clicking and dragging on the partial volume in the 3D view. Once the axis is no longer visible, you can translate the partial volume in the x-axis without affecting the other axes.

![](https://github.com/BrownBiomechanics/Autoscoper/releases/download/docs-resources/autoscoper-tipsntricks-1.gif)
![](https://github.com/BrownBiomechanics/Autoscoper/releases/download/docs-resources/autoscoper-tipsntricks-1.gif)
2 changes: 1 addition & 1 deletion autoscoper/src/ui/AboutAutoscoper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ AboutAutoscoper::AboutAutoscoper(QWidget* parent)
AboutAutoscoper::~AboutAutoscoper()
{
delete about;
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/FilterTreeWidgetParameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public slots:
void parameterChanged();
};

#endif // FILTERTREEWIDGETPARAMETER_H
#endif // FILTERTREEWIDGETPARAMETER_H
2 changes: 1 addition & 1 deletion autoscoper/src/ui/ImportExportTrackingOptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ void ImportExportTrackingOptionsDialog::on_pushButton_OK_clicked()
void ImportExportTrackingOptionsDialog::on_pushButton_Cancel_clicked()
{
this->reject();
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/NewTrialDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,4 @@ bool NewTrialDialog::run()
std::cerr << e.what() << std::endl;
return false;
}
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/OpenCLPlatformSelectDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ void OpenCLPlatformSelectDialog::on_pushButton_clicked()
xromm::gpu::setUsedPlatform(diag->comboBox->currentIndex());
#endif
this->close();
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/QtCategoryButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ QtCategoryButton::QtCategoryButton(const QString& a_Text, QTreeWidget* a_pParent
void QtCategoryButton::ButtonPressed()
{
m_pItem->setExpanded(!m_pItem->isExpanded());
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/QtCategoryButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ private slots:
QTreeWidgetItem* m_pItem;
};

#endif // QTCATEGORYBUTTON_H
#endif // QTCATEGORYBUTTON_H
2 changes: 1 addition & 1 deletion autoscoper/src/ui/TrackingOptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@ void TrackingOptionsDialog::on_radioButton_SplineInterpolation_clicked(bool chec
AutoscoperMainWindow* mainwindow = dynamic_cast<AutoscoperMainWindow*>(parent());

mainwindow->getTracker()->trial()->guess = 3;
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/VolumeBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ void VolumeBox::on_toolButton_VolumeFile_clicked()
if (fileName.isNull() == false) {
widget->lineEdit_VolumeFile->setText(fileName);
}
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/VolumeListWidgetItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ void VolumeListWidgetItem::on_visiblilityCheckBox__toggled(bool checked)
}
}
main_window_->volume_changed(); // update the volume
}
}
2 changes: 1 addition & 1 deletion autoscoper/src/ui/WorldViewWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ void WorldViewWindow::setSharedGLContext(QOpenGLContext* sharedContext)
void WorldViewWindow::draw()
{
openGL->update();
}
}
1 change: 0 additions & 1 deletion libautoscoper/src/Win32/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -886,4 +886,3 @@ dirent_set_errno(
}
#endif
#endif /*DIRENT_H*/

2 changes: 1 addition & 1 deletion libautoscoper/src/gpu/cuda/ContrastFilter_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ namespace xromm {
namespace gpu {
void contrast_filter_apply(const float* input, float* output, int width, int height, float alpha, float beta, int size);
}
} // namespace xromm
} // namespace xromm
2 changes: 1 addition & 1 deletion libautoscoper/src/gpu/cuda/Mult_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ namespace xromm {
namespace gpu {
void multiply(float* src1, float* src2, float* dest, size_t width, size_t height);
}
} // namespace xromm
} // namespace xromm
2 changes: 1 addition & 1 deletion libautoscoper/src/gpu/cuda/PSO_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ cudaFree(devVel);
cudaFree(devPBest);
cudaFree(devGBest);
}
* /
* /
2 changes: 0 additions & 2 deletions libautoscoper/src/gpu/opencl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ set(opencl_SOURCES
src/gpu/opencl/DRRBackground.cpp
src/gpu/opencl/Mult.cpp
)


1 change: 0 additions & 1 deletion libautoscoper/src/gpu/opencl/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ endforeach()
add_custom_target(${SHADER_TO_HEADER} DEPENDS ${GENERATED_LIST})

set(opencl_shaders_src ${GENERATED_LIST} PARENT_SCOPE)

1 change: 0 additions & 1 deletion libautoscoper/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ if(WIN32)
# The xromm::filesystem::relative compatibility function is not expected to work on Windows
set_tests_properties(TestFileSystemCompat PROPERTIES WILL_FAIL TRUE)
endif()

2 changes: 1 addition & 1 deletion scripts/matlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@ This function has the following parameters:
connection.closeConnection();
```

This will close the connection to the server.
This will close the connection to the server.
2 changes: 1 addition & 1 deletion scripts/python/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# PyAutoscoper

Documentation for the Python API can be found on [Read the Docs](https://autoscoper.readthedocs.io/en/latest/socket-control-libraries/pyautoscoper.html).
Documentation for the Python API can be found on [Read the Docs](https://autoscoper.readthedocs.io/en/latest/socket-control-libraries/pyautoscoper.html).

0 comments on commit 04647b3

Please sign in to comment.