Skip to content

Commit

Permalink
checks for bluemira capitalisation only at start of sentences (#3714)
Browse files Browse the repository at this point in the history
  • Loading branch information
kj5248 authored Nov 29, 2024
1 parent aa8317b commit 3fe4b96
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_release_due.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Checks if a release of Bluemira is due, and opens an issue if it is.
# Checks if a release of bluemira is due, and opens an issue if it is.
name: Check If Release Due

on:
Expand Down
2 changes: 1 addition & 1 deletion bluemira/base/reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
#
# SPDX-License-Identifier: LGPL-2.1-or-later
"""Base class for a Bluemira reactor."""
"""Base class for a bluemira reactor."""

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions bluemira/codes/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def run_cls(self) -> type[CodesTask]:
solver.
This class is where computations should be defined. This may be
something like calling a Bluemira problem, or executing some
something like calling a bluemira problem, or executing some
external code or process.
"""

Expand All @@ -318,7 +318,7 @@ def teardown_cls(self) -> type[CodesTask]:
This class should perform any clean-up operations required by
the solver. This may be deleting temporary files, or could
involve mapping parameters from some external code to Bluemira
involve mapping parameters from some external code to bluemira
parameters.
"""

Expand Down
2 changes: 1 addition & 1 deletion bluemira/codes/process/_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Setup(CodesSetup):
in_dat_path:
The path to where the IN.DAT file should be written.
problem_settings:
The PROCESS parameters that do not exist in Bluemira.
The PROCESS parameters that do not exist in bluemira.
"""

MODELS: ClassVar = {
Expand Down
2 changes: 1 addition & 1 deletion bluemira/equilibria/find_legs.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def calculate_connection_length(
If an invalid option calculation_method is selected.
If no target is provided for FLT calculation_method - this is because the
flux interception point found is not accurate enough to be used
on a seperatrix automatically found by Bluemira (n.b., the FLT can not
on a seperatrix automatically found by bluemira (n.b., the FLT can not
distingish between open and closed flux).
"""
Expand Down
2 changes: 1 addition & 1 deletion bluemira/geometry/placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _create(cls, obj: cadapi.apiPlacement, label: str = "") -> BluemiraPlacement
Returns
-------
:
A Bluemira placement from a FreeCAD placement.
A bluemira placement from a FreeCAD placement.
"""
if isinstance(obj, cadapi.apiPlacement):
placement = BluemiraPlacement(label=label)
Expand Down
2 changes: 1 addition & 1 deletion bluemira/geometry/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def from_3_points(
Returns
-------
:
A Bluemira plane.
A bluemira plane.
"""
plane = BluemiraPlane()
plane._shape = cadapi.make_plane_from_3_points(point_1, point_2, point_3)
Expand Down
2 changes: 1 addition & 1 deletion bluemira/geometry/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def default(self, obj: BluemiraGeoT | np.ndarray | Any):
Returns
-------
:
List from Bluemira shape or numpy array.
List from bluemira shape or numpy array.
"""
if isinstance(obj, BluemiraGeo):
return serialise_shape(obj)
Expand Down
4 changes: 2 additions & 2 deletions bluemira/materials/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def to_openmc_material(
temperature_to_neutronics_code: bool = True,
) -> openmc.Material:
"""
Convert Bluemira material to OpenMC material
Convert bluemira material to OpenMC material
Returns
-------
Expand Down Expand Up @@ -189,7 +189,7 @@ def to_openmc_material_mixture(
*,
temperature_to_neutronics_code: bool = True,
) -> openmc.Material:
"""Convert Bluemira material mixture to OpenMC material mixture
"""Convert bluemira material mixture to OpenMC material mixture
Returns
-------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Options:
* Higher computational cost (recreate upon each call of geometry)
* Higher maintenance overhead
* Reverse engineering of FreeCAD is presently imperfect
* An operation can work in FreeCAD but fail upon "reconstruction" in Bluemira
* An operation can work in FreeCAD but fail upon "reconstruction" in bluemira
* NotClosedWireError, DisjointedFaceError, ...
* Cache the FreeCAD shape
* Pros:
Expand Down
2 changes: 1 addition & 1 deletion documentation/source/base/parameter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Units
:py:class:`ParameterFrames` always enforce the same set of standard units :ref:`unit_convention`.
:py:class:`Parameters` within a :py:class:`ParameterFrame` whose units are convertible to one of bluemira's standard units,
have their values and converted to the corresponding standard unit.
This keeps the units used within Bluemira consistent across classes and modules.
This keeps the units used within bluemira consistent across classes and modules.

For this reason, if your inputs use a non-standard unit,
the value you put into a :py:class:`Parameter` will be different to the one you get out.
Expand Down
2 changes: 1 addition & 1 deletion documentation/source/developer/logging.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Logging in Bluemira
Logging in bluemira
-------------------

To organise and have granularity in text (and potentially graphical) outputs
Expand Down
2 changes: 1 addition & 1 deletion documentation/source/developer/release_workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Release Workflow
Schedule
--------

A new version of Bluemira is tagged every 6 weeks; marking the end of a
A new version of bluemira is tagged every 6 weeks; marking the end of a
development cycle.
When a new release is due, a scheduled GitHub Actions workflow opens an issue
to create a release.
Expand Down
6 changes: 3 additions & 3 deletions documentation/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ leveraging the functionality of the above modules.

.. _how to use:

How to use ``Bluemira``
How to use ``bluemira``
-----------------------

``Bluemira`` is designed to be used by three different types of user.
Expand All @@ -40,12 +40,12 @@ How to use ``Bluemira``
A Modeller will execute a reactor build workflow (created by a '`Reactor Designer`_'), to carry out studies on a reactor design. Modellers will need to know about the parameters of a design, and how to manipulate JSON files to modify those parameters.

_`Reactor Designer`
A Reactor Designer will use ``Bluemira`` as a framework to create a design for a reactor.
A Reactor Designer will use ``bluemira`` as a framework to create a design for a reactor.
To design a reactor, the design workflow strategy needs to be considered and codified.
Using Designer and Builder objects, each component of the reactor can be created and collected into a full reactor design, or used individually.

Developers
A developer of ``Bluemira`` will need to understand the program to a much more detailed level than a reactor designer. They will be involved with adding new features to ``Bluemira`` as well as helping a Reactor Designer or a Modeller to add a new feature or customisation option.
A developer of ``bluemira`` will need to understand the program to a much more detailed level than a reactor designer. They will be involved with adding new features to ``bluemira`` as well as helping a Reactor Designer or a Modeller to add a new feature or customisation option.

High level Architecture
^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion documentation/source/optimisation/optimisation_doc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ for an implemented example of an :code:`OptimisationProblem`.
Available Optimisation Algorithms
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

There are several optimisation algorithms that can be used within Bluemira.
There are several optimisation algorithms that can be used within bluemira.
Including gradient and non-gradient based.

- SLSQP
Expand Down
2 changes: 1 addition & 1 deletion documentation/source/radiation_transport/radiation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ distance along the SOL, *L* is the total parallel distance from the upstream to
is the cross-sectional area of the SOL for power flow.

The **radiation region** starts above the X-point, as most of the radiative loss occurs near the divertor,
due to the steep parallel temperature gradients [Pitcher_1997]_. In ``Bluemira``, the actual position is
due to the steep parallel temperature gradients [Pitcher_1997]_. In ``bluemira``, the actual position is
a user choice. The temperature decay stops at the entrance to recycling region. As for the upstream
temperature, the temperature at the start of the radiation region is calculated as function of the
parallel distance:
Expand Down
4 changes: 2 additions & 2 deletions documentation/source/utilities/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Toroidal coordinate transform
----------------------------------------

This is a demonstration of the conversion between cylindrical and toroidal coordinate systems
using the Bluemira functions `cylindrical_to_toroidal` and `toroidal_to_cylindrical`. We denote toroidal coordinates by (:math:`\tau`, :math:`\sigma`, :math:`\phi`) and cylindrical coordinates by (:math:`R`, :math:`z`, :math:`\phi`).
using the bluemira functions `cylindrical_to_toroidal` and `toroidal_to_cylindrical`. We denote toroidal coordinates by (:math:`\tau`, :math:`\sigma`, :math:`\phi`) and cylindrical coordinates by (:math:`R`, :math:`z`, :math:`\phi`).

The snippets in this document use these imports
.. code-block:: python
Expand Down Expand Up @@ -64,7 +64,7 @@ where we have
Converting a unit circle
^^^^^^^^^^^^^^^^^^^^^^^^
We will start with an example of converting a unit circle in cylindrical coordinates to
toroidal coordinates and then converting back to cylindrical using the Bluemira functions `cylindrical_to_toroidal` and `toroidal_to_cylindrical`.
toroidal coordinates and then converting back to cylindrical using the bluemira functions `cylindrical_to_toroidal` and `toroidal_to_cylindrical`.
This unit circle is centered at the point (2,0) in the poloidal plane.

Original circle:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# %% [markdown]
# # Example of using Spherical Harmonic Approximation
#
# This example illustrates the inner workings of the Bluemira spherical harmonics
# This example illustrates the inner workings of the bluemira spherical harmonics
# approximation function (spherical_harmonic_approximation) which can be used in
# coilset current and position optimisation for spherical tokamaks.
# For an example of how spherical_harmonic_approximation is used
Expand Down
2 changes: 1 addition & 1 deletion examples/equilibria/coilset_opt_problem_tutorial.ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
# coilset state array.
# - Usually based on NLOpt.
# - There are several optimisation algorithms that can be used within
# Bluemira.
# bluemira.
# Including gradient and non-gradient based.
# - SLSQP
# - COBYLA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# # spherical_harmonic_approximation Function
#
# This example illustrates the input and output of the
# Bluemira spherical harmonics approximation function
# bluemira spherical harmonics approximation function
# (spherical_harmonic_approximation) which can be used
# in coilset current and position optimisation for spherical tokamaks.

Expand Down Expand Up @@ -79,7 +79,7 @@
#
# ### Required
#
# - eq = Our chosen Bluemira Equilibrium
# - eq = Our chosen bluemira equilibrium
#
# ### Optional
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_examples.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
"""
Run Bluemira example files in sequence. Exit with code 1 if any errors.
Run bluemira example files in sequence. Exit with code 1 if any errors.
This will recursively search for python files within a given directory,
and run them in sequence. It will report which ran without error, and
Expand Down

0 comments on commit 3fe4b96

Please sign in to comment.