Skip to content

Commit dcbd249

Browse files
committed
Address reviewer feedback and fix additional issues
1 parent 864c7b6 commit dcbd249

21 files changed

+68
-53
lines changed

lib/ramble/docs/conf.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,28 @@ def setup(sphinx):
196196
# Python classes that intersphinx is unable to resolve
197197
("py:class", "argparse.HelpFormatter"),
198198
("py:class", "contextlib.contextmanager"),
199+
("py:class", "func"),
199200
("py:class", "module"),
200201
("py:class", "_io.BufferedReader"),
202+
("py:class", "ramble.repository._PrependFileLoader"),
201203
("py:class", "unittest.case.TestCase"),
202204
("py:class", "_frozen_importlib_external.SourceFileLoader"),
203205
("py:class", "clingo.Control"),
204206
("py:class", "TextIO"),
205-
("py:class", "func"),
207+
("py:class", "llnl.util.argparsewriter.ArgparseCompletionWriter"),
208+
("py:class", "llnl.util.argparsewriter.ArgparseRstWriter"),
209+
("py:class", "llnl.util.argparsewriter.ArgparseWriter"),
210+
("py:class", "llnl.util.lock.Lock"),
211+
("py:class", "pandas.core.frame.DataFrame"),
212+
("py:class", "spack.environment.Environment"),
213+
("py:class", "spack.error.SpackError"),
214+
("py:class", "spack.error.SpecError"),
215+
("py:class", "spack.parse.Lexer"),
216+
("py:class", "spack.parse.Parser"),
217+
("py:class", "spack.package.Package"),
218+
("py:class", "spack.util.environment.EnvironmentModifications"),
219+
("py:class", "spack.util.executable.Executable"),
220+
("py:class", "spack.util.pattern.Composite"),
206221
]
207222

208223
# The reST default role (used for this markup: `text`) to use for all documents.

lib/ramble/docs/package_managers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
except according to those terms.
88
99
10-
.. _package_manager_control:
10+
.. _package-manager-control:
1111

1212
================
1313
Package Managers

lib/ramble/docs/results.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
option. This file may not be copied, modified, or distributed
77
except according to those terms.
88
9-
.. _workspace:
9+
.. _results:
1010

1111
==============
1212
Ramble Results

lib/ramble/docs/success_criteria.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The above example shows the full interface for defining success criteria with
116116
* ``fom_context``: (Optional) The context ``fom_name`` should exist in. Defaults to ``null``.
117117

118118
Both ``fom_name`` and ``fom_context`` support
119-
`python style globbing<https://docs.python.org/3/library/fnmatch.html>`_.
119+
`python style globbing <https://docs.python.org/3/library/fnmatch.html>`_.
120120

121121
When using the globbing functionality, all contexts that match the
122122
``fom_context`` argument are searched. Within each context, all FOMs that match

lib/ramble/docs/tutorials/7_using_zips_and_matrices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Your final configuration file should look something like:
165165
.. include:: shared/wrf_execute.rst
166166

167167
**NOTE** Some of these experiments can take a while to execute. Experiments can
168-
be filtered using the :ref:`--where <filter-experiments>`` option to execute the
168+
be filtered using the :ref:`--where <filter-experiments>` option to execute the
169169
higher scale experiments if desired. To do this, try:
170170

171171
.. code-block:: console

lib/ramble/docs/workspace.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ the installation and generate software environments for each experiment.
421421

422422
As an example, if the applications and workspace configuration file provide a
423423
configuration for Spack, Ramble will generate
424-
`Spack environments<https://spack.readthedocs.io/en/latest/environments.html>`_.
424+
`Spack environments <https://spack.readthedocs.io/en/latest/environments.html>`_.
425425

426426
By default, Ramble uses the following format for creating a spack environment file:
427427

lib/ramble/docs/workspace_config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ In the above example, the chained experiment would have a namespace of:
12651265
``hostname.serial.test_exp2.chain.0.hostname.serial.test_exp1``
12661266

12671267
The ``name`` attribute can use `globbing
1268-
syntax<https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`_ to chain
1268+
syntax <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`_ to chain
12691269
multiple experiments at once.
12701270

12711271
The ``order`` keyword is optional. Valid options include:

lib/ramble/ramble/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ def override(path_or_scope, value=None):
756756
"""Simple way to override config settings within a context.
757757
758758
Arguments:
759-
path_or_scope (ConfigScope or str): scope or single option to override
760-
value (object or None): value for the single option
759+
path_or_scope (ConfigScope | str): scope or single option to override
760+
value (object | None): value for the single option
761761
762762
Temporarily push a scope on the current configuration, then remove it
763763
after the context completes. If a single option is provided, create
@@ -963,8 +963,8 @@ def validate(data, schema, filename=None):
963963
"""Validate data read in from a Ramble YAML file.
964964
965965
Arguments:
966-
data (dict or list): data read from a Ramble YAML file
967-
schema (dict or list): jsonschema to validate data
966+
data (dict | list): data read from a Ramble YAML file
967+
schema (dict | list): jsonschema to validate data
968968
969969
This leverages the line information (start_mark, end_mark) stored
970970
on Ramble YAML structures.

lib/ramble/ramble/context.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,22 @@ def create_context_from_dict(context_name, in_dict):
9999
100100
Dictionaries should follow the below format:
101101
102-
in_dict = {
103-
'env_vars': [],
104-
'variables': {},
105-
'variants': {},
106-
'internals': {},
107-
'template': '',
108-
'chained_experiments': [],
109-
'modifiers': [],
110-
'context_name': '',
111-
'exclude': {},
112-
'zips': {},
113-
'matrices': {} or [],
114-
'tags': [],
115-
'n_repeats': ''
102+
.. code-block:: python
103+
104+
in_dict = {
105+
'env_vars': [],
106+
'variables': {},
107+
'variants': {},
108+
'internals': {},
109+
'template': '',
110+
'chained_experiments': [],
111+
'modifiers': [],
112+
'context_name': '',
113+
'exclude': {},
114+
'zips': {},
115+
'matrices': {} or [],
116+
'tags': [],
117+
'n_repeats': ''
116118
}
117119
118120
Args:

lib/ramble/ramble/expander.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def relative_indices(self, relative_to):
135135
"""Compute node indices relative to another node
136136
137137
Args:
138-
relative_to (ExpansionNode): node to shift current node's indices
139-
relative to
138+
relative_to (ExpansionNode): node to shift current node's indices relative to
140139
141140
Returns:
142141
(tuple) indices of shifted match set
@@ -147,8 +146,7 @@ def add_children(self, children):
147146
"""Add children to this node
148147
149148
Args:
150-
children (ExpansionNode, or list): nodes to adds as children of
151-
self
149+
children (ExpansionNode | list): nodes to adds as children of self
152150
"""
153151
if isinstance(children, list):
154152
self.children.extend(children)

0 commit comments

Comments
 (0)