Skip to content

Fixed #1164 Improve Reproducibility Message - #1167

Merged
seanlaw merged 2 commits into
stumpy-dev:mainfrom
seanlaw:improve_reproducibility_message
Jul 31, 2026
Merged

Fixed #1164 Improve Reproducibility Message#1167
seanlaw merged 2 commits into
stumpy-dev:mainfrom
seanlaw:improve_reproducibility_message

Conversation

@seanlaw

@seanlaw seanlaw commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

See #1164

Pull Request Checklist

Below is a simple checklist but please do not hesitate to ask for assistance!

  • Read our Contributing Guide
  • Referenced a Github issue (or create one if one doesn't already exist)
  • Left a meaningful comment on the original Github issue to discuss the detailed approach for your contribution
  • Forked, cloned, and checkedout the newest version of the code
  • Created a new branch
  • Made necessary code changes
  • Installed black (i.e., python -m pip install black or conda install -c conda-forge black)
  • Installed flake8 (i.e., python -m pip install flake8 or conda install -c conda-forge flake8)
  • Installed pytest-cov (i.e., python -m pip install pytest-cov or conda install -c conda-forge pytest-cov)
  • Ran black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./ in the root stumpy directory
  • Ran flake8 --extend-exclude=.venv ./ in the root stumpy directory
  • Ran ./setup.sh dev && ./test.sh in the root stumpy directory

@gitnotebooks

gitnotebooks Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1167

@seanlaw

seanlaw commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@NimaSarajpoor I think this is ready to be merged. Would you mind providing your thoughts?

@NimaSarajpoor NimaSarajpoor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seanlaw
That was fast! I added two minor comments for your consideration. Nothing else stood out to me.

Comment thread stumpy/rng.py

# Note that an initial SEED = 0 is disallowed
# in order to account for unit testing
if os.getenv("STUMPY_SEED") is not None: # pragma: no cover

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should check if os.getenv("STUMPY_SEED") is 0, and raise an error if that is true.

Comment thread conftest.py Outdated
pytest.STUMPY_MSG = (
f"\n\nSTUMPY_STATE='{state_str}' pixi run tests custom {config.args[0]}"
f"\n\nSTUMPY_SEED={rng.SEED} {env_vars} "
f"pixi exec {specs} ./test.sh custom 1 {config.args[0]}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a must have... but I think it should be good to have a + between the two strings.

@seanlaw
seanlaw merged commit ce4e8d0 into stumpy-dev:main Jul 31, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants