Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
β’
e9fbda8
1
Parent(s):
ce904eb
Move param_groupings file to `pysr` folder
Browse files- docs/gen_param_docs.py +1 -1
- {docs β pysr}/param_groupings.yml +0 -0
- pysr/test/test.py +1 -3
docs/gen_param_docs.py
CHANGED
@@ -53,7 +53,7 @@ def str_param_groups(param_groupings, params, cur_heading=2):
|
|
53 |
if __name__ == "__main__":
|
54 |
# This is the path to the param_groupings.yml file
|
55 |
# relative to the current file.
|
56 |
-
path = "param_groupings.yml"
|
57 |
with open(path, "r") as f:
|
58 |
param_groupings = safe_load(f)
|
59 |
|
|
|
53 |
if __name__ == "__main__":
|
54 |
# This is the path to the param_groupings.yml file
|
55 |
# relative to the current file.
|
56 |
+
path = "../pysr/param_groupings.yml"
|
57 |
with open(path, "r") as f:
|
58 |
param_groupings = safe_load(f)
|
59 |
|
{docs β pysr}/param_groupings.yml
RENAMED
File without changes
|
pysr/test/test.py
CHANGED
@@ -714,9 +714,7 @@ class TestMiscellaneous(unittest.TestCase):
|
|
714 |
|
715 |
def test_param_groupings(self):
|
716 |
"""Test that param_groupings are complete"""
|
717 |
-
param_groupings_file = (
|
718 |
-
Path(__file__).parent.parent.parent / "docs" / "param_groupings.yml"
|
719 |
-
)
|
720 |
# Read the file, discarding lines ending in ":",
|
721 |
# and removing leading "\s*-\s*":
|
722 |
params = []
|
|
|
714 |
|
715 |
def test_param_groupings(self):
|
716 |
"""Test that param_groupings are complete"""
|
717 |
+
param_groupings_file = Path(__file__).parent.parent / "param_groupings.yml"
|
|
|
|
|
718 |
# Read the file, discarding lines ending in ":",
|
719 |
# and removing leading "\s*-\s*":
|
720 |
params = []
|