Skip to content

Commit

Permalink
Merge branch 'master' into docs_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed May 16, 2024
2 parents d132eae + 6effa1e commit 643c3c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
args: [--safe, --line-length=100, --preview]
Expand All @@ -24,7 +24,7 @@ repos:
- id: docformatter

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.0
hooks:
- id: mypy
additional_dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion extra_requirements/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ nbsphinx==0.8.9
recommonmark==0.7.1
sphinx==7.1.2
sphinx_rtd_theme==1.3.0
Jinja2==3.1.3
Jinja2==3.1.4
urllib3==2.2.1
lxml_html_clean
4 changes: 2 additions & 2 deletions straxen/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def storage_graph(
# if the plugin is stored, fill in green
fillcolor = "green"
else:
save_when = deepcopy(st._plugin_class_registry[target].save_when)
save_when = deepcopy(st._plugin_class_registry[target]().save_when)
if isinstance(save_when, immutabledict):
save_when = save_when[target]
# if it is not stored, fill in the color according to save_when
Expand All @@ -531,7 +531,7 @@ def storage_graph(
)
if (not st.is_stored(run_id, target)) and (target not in not_stored):
not_stored.add(target)
depends_on = deepcopy(st._plugin_class_registry[target].depends_on)
depends_on = deepcopy(st._plugin_class_registry[target]().depends_on)
depends_on = strax.to_str_tuple(depends_on)
for dep in depends_on:
# only add the node to the graph but not save the plot
Expand Down
2 changes: 1 addition & 1 deletion tests/test_url_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def test_run_doc_protocol(self):

with self.assertRaises(ValueError):
self.st.set_config({"test_config": "run_doc://mode?run_id=plugin.run_id"})
p = self.st.get_single_plugin(999999999, "test_data")
p = self.st.get_single_plugin("999999999", "test_data")
return p.test_config

def test_pad_array(self):
Expand Down

0 comments on commit 643c3c5

Please sign in to comment.