Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions example_settings/pyroomacoustics_setting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"type": "simulationSettings",
"options": [
{
"name": "Speed of sound",
"id": "c0",
"type": "float",
"display": "text",
Comment on lines +4 to +8
"min": 100,
"max": 500,
"default": 343,
"step": 1,
"endAdornment": "m/s"
},
{
"name": "Air density",
"id": "rho0",
"type": "float",
"display": "text",
"min": 0.001,
Comment on lines +15 to +20
"max": 3,
"default": 1.213,
"step": 0.001,
"endAdornment": "kg/m^3"
},
{
"name": "Image source order",
"id": "image_source_order",
"type": "integer",
"display": "text",
"min": 1,
"max": 1000,
"default": 2,
"step": 1
},
{
"name": "Sampling rate",
"id": "sampling_rate",
"type": "integer",
"display": "text",
"min": 1000,
"max": 192000,
"default": 8000,
"step": 1000,
"endAdornment": "Hz"
}
]
}
10 changes: 10 additions & 0 deletions methods-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,15 @@
"settings":"my_new_setting.json",
"repositoryURL":"",
"documentationURL":""
},
{
"simulationType": "Pyroomacoustics",
"containerImage": "pyroomacoustics_image:latest",
"envVars": {},
"label": "Pyroomacoustics",
"settings": "pyroomacoustics_setting.json",
"entryFile": "__main__.py",
"repositoryURL": "https://github.com/LCAV/pyroomacoustics",
"documentationURL": "https://pyroomacoustics.readthedocs.io"
}
]
36 changes: 36 additions & 0 deletions pyroomacoustics_method/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies = [
"gmsh",
"pyroomacoustics>=0.8.0",
"requests",
"pyfar>=0.8.0",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -73,3 +74,38 @@ pyroomacoustics_interface = "pyroomacoustics_interface:main"

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.ruff]
line-length = 79
lint.ignore = [
"D200", # One-line docstring should fit on one line with quotes
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D401", # First line should be in imperative mood
"D404", # First word of the docstring should not be "This"
"B006", # Do not use mutable data structures for argument defaults
"B008", # Do not perform calls in argument defaults
"PT018", # Assertion should be broken down into multiple parts
"PT019", # Fixture `_` without value is injected as parameter

]
lint.select = [
"B", # bugbear extension
"ARG", # Remove unused function/method arguments
"C4", # Check for common security issues
"E", # PEP8 errors
"F", # Pyflakes
"W", # PEP8 warnings
"D", # Docstring guidelines
"NPY", # Check all numpy related deprecations
"D417", # Missing argument descriptions in the docstring
"PT", # Pytest style
"A", # Avoid builtin function and type shadowing
"ERA", # No commented out code
]

# Ignore missing docstrings in tests


[tool.ruff.lint.pydocstyle]
convention = "numpy"
Loading