Skip to content

Commit e5c656d

Browse files
Merge branch 'master' into release-prep
2 parents 4b16533 + d54dd19 commit e5c656d

File tree

11 files changed

+53
-223
lines changed

11 files changed

+53
-223
lines changed

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
# Add any paths that contain templates here, relative to this directory.
5050
templates_path = ["_templates"]
5151

52-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5352

5453
# Mock imports of the following packages
5554
# Comments following are the reason for mocking that particular import
@@ -84,7 +83,11 @@
8483
# List of patterns, relative to source directory, that match files and
8584
# directories to ignore when looking for source files.
8685
# This pattern also affects html_static_path and html_extra_path.
87-
exclude_patterns = []
86+
exclude_patterns = [
87+
"_build",
88+
"Thumbs.db",
89+
".DS_Store",
90+
]
8891

8992
# The name of the Pygments (syntax highlighting) style to use.
9093
pygments_style = None

docs/fixate/fixate.config.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/fixate/fixate.core.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ fixate.core.common module
2525
:undoc-members:
2626
:show-inheritance:
2727

28-
fixate.core.config\_util module
29-
-------------------------------
30-
31-
.. automodule:: fixate.core.config_util
32-
:members:
33-
:undoc-members:
34-
:show-inheritance:
35-
3628
fixate.core.control module
3729
--------------------------
3830

@@ -49,14 +41,6 @@ fixate.core.exceptions module
4941
:undoc-members:
5042
:show-inheritance:
5143

52-
fixate.core.jig\_mapping module
53-
-------------------------------
54-
55-
.. automodule:: fixate.core.jig_mapping
56-
:members:
57-
:undoc-members:
58-
:show-inheritance:
59-
6044
fixate.core.ui module
6145
---------------------
6246

docs/fixate/fixate.examples.rst

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/fixate/fixate.reporting.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/fixate/fixate.rst

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,36 @@ fixate package
66
:undoc-members:
77
:show-inheritance:
88

9+
.. autoclass:: VirtualMux
10+
:members:
11+
12+
.. autoclass:: VirtualSwitch
13+
:members:
14+
15+
.. autoclass:: RelayMatrixMux
16+
:members:
17+
18+
.. autoclass:: AddressHandler
19+
:members:
20+
21+
.. autoclass:: PinValueAddressHandler
22+
:members:
23+
24+
.. autoclass:: MuxGroup
25+
:members:
26+
27+
.. autoclass:: JigDriver
28+
:members:
29+
30+
.. autofunction:: generate_pin_group
31+
32+
.. autofunction:: generate_relay_matrix_pin_list
33+
934
Subpackages
1035
-----------
1136

1237
.. toctree::
1338
:maxdepth: 4
1439

15-
fixate.config
1640
fixate.core
1741
fixate.drivers
18-
fixate.examples
19-
fixate.reporting
20-
fixate.ui_cmdline
21-
fixate.ui_gui_qt
22-
23-
Submodules
24-
----------
25-
26-
fixate.sequencer module
27-
-----------------------
28-
29-
.. automodule:: fixate.sequencer
30-
:members:
31-
:undoc-members:
32-
:show-inheritance:

docs/fixate/fixate.ui_cmdline.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/fixate/fixate.ui_gui_qt.rst

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ If the package structure changes, then the sphinx-apidocs call above will need t
5555

5656
While the apidoc potentially could be re-run on every build, at least for now I think better to commit in the original run, and then the structure of the api reference can be tweaked to best surface the most important info.
5757

58+
Note: The auto-generated template has been manually modified. Re-running sphinx-apidoc in the future will need to preserve those changes, or incorporate them into the source somehow.
59+
5860
## docstring style
5961

6062
Autodoc originally used ReStructured Text docstring style, but the [sphix.ext.napoleon](https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html) extension allows [Google](https://www.sphinx-doc.org/en/master/usage/extensions/example_google.html#example-google)/NumPy style.

src/fixate/_switching.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def set_pins(self, pins: Collection[Pin]) -> None:
535535
open it.
536536
537537
:param pins: is a collection of pins that should be made active. All other
538-
pins defined by the AddressHandler should be cleared.
538+
pins defined by the AddressHandler should be cleared.
539539
"""
540540
raise NotImplementedError
541541

@@ -660,12 +660,12 @@ class MuxGroup:
660660
Group multiple VirtualMux's, for use in a single Jig Driver.
661661
662662
If a test script, it is expected that MuxGroup will be subclassed, with attributes
663-
being each required VirtualMux subclass. This can be done using a dataclass:
663+
being each required VirtualMux subclass. This can be done using a dataclass::
664664
665-
@dataclass
666-
class JigMuxGroup(MuxGroup):
667-
mux_one: MuxOne = field(default_factory=MuxOne)
668-
mux_two: MuxTwo = field(default_factory=MuxTwo)
665+
@dataclass
666+
class JigMuxGroup(MuxGroup):
667+
mux_one: MuxOne = field(default_factory=MuxOne)
668+
mux_two: MuxTwo = field(default_factory=MuxTwo)
669669
"""
670670

671671
def get_multiplexers(self) -> list[VirtualMux]:
@@ -817,12 +817,15 @@ def generate_relay_matrix_pin_list(
817817
"""
818818
Create a pin list for multiple relay matrix modules.
819819
820-
Each module is allocated 16 pins
821-
generate_relay_matrix_pin_list([1,2,3]) ->
822-
("1K1", "1K2", ..., "1K16", "2K1", ..., "2K16", "3K1", ..., "3K16")
820+
Each module is allocated 16 pins. For example::
823821
824-
generate_relay_matrix_pin_list([2,3,1], prefix="RM") ->
825-
("RM2K1", "RM2K2", ..., "RM2K16", "RM3K1", ..., "RM3K16", "RM1K1", ..., "RM1K16")
822+
generate_relay_matrix_pin_list([1,2,3]) ->
823+
("1K1", "1K2", ..., "1K16", "2K1", ..., "2K16", "3K1", ..., "3K16")
824+
825+
You can add a prefix. For example, we ofter use 'RM' for Relay Matrix::
826+
827+
generate_relay_matrix_pin_list([2,3,1], prefix="RM") ->
828+
("RM2K1", "RM2K2", ..., "RM2K16", "RM3K1", ..., "RM3K16", "RM1K1", ..., "RM1K16")
826829
827830
Combination generate_relay_matrix_pin_list and generate_pin_group to create pins
828831
as needed for a specific jig configuration.

0 commit comments

Comments
 (0)