Skip to content

Conversation

@icui
Copy link
Collaborator

@icui icui commented Nov 6, 2025

Description

Use snakemake to generate database.bin in tests/unit-tests/data

Issue Number

Adds to #1178

Checklist

Please make sure to check developer documentation on specfem docs.

  • I ran the code through pre-commit to check style
  • THE DOCUMENTATION BUILDS WITHOUT WARNINGS/ERRORS
  • I have added labels to the PR (see right hand side of the PR page)
  • My code passes all the integration tests
  • I have added sufficient unittests to test my changes
  • I have added/updated documentation for the changes I am proposing
  • I have updated CMakeLists to ensure my code builds
  • My code builds across all platforms

Comment on lines +16 to +17
pathvars:
cwd=f"dim2/{db_name}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I tried running this snakemake workflow. I get the following error

SyntaxError in file "/Users/rohit-kakodkar/Desktop/SPECFEMPP/tests/unit-tests/data/Snakefile", line 10:
Unexpected keyword pathvars in module definition:
None

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It could be a version issue, I've updated snakemake version to 9.13.4 in the latest PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a snakemake min version requirement in the files that use pathvars.

from snakemake.utils import min_version

min_version("9.13")

@Rohit-Kakodkar
Copy link
Collaborator

Btw, I love how short the snake files are

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.

4 participants