-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New support for pytest unit testing. * Removed old man pages generations. * Added optional support for libfyaml. * Added rb_knn_list to documentation ignore list. * Cleaned and organized apes tests notebooks. * New apes_tests/xcdm_nopert.ipynb. * Fixed documentation glitches. * Started implementation of Serialization yaml backend. * Fixed AC_DEFINE for libfyaml. * Finished first version of the YAML serialization. * Fixed NcmModel unit tests to handle double sub-indices. * Added support for installing numcosmo_py. Added missing docs to numcosmo-docs. Renamed mcat related scripts. New interface in nc_hicosmo_Vexp. * Added command to update apt index before installing prereqs. * Added xcdm experiment with cosmological dataset without perturbation dependent data. * Added support for pytest in CI. * Testing example compilation without installing the library. * Fixed libfyaml dependent static function in ncm_serialize.c. Added link to numcosmo library in test of non-installed library. * Better test calibration. * Improved doc in ncm_cfg. * Improved wisdown handling in ncm_cfg. * Improved coverage tweaking. * Do not CI all branches. * Testing python example running without installing.
- Loading branch information
Showing
58 changed files
with
5,200 additions
and
3,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
import os | ||
import os.path | ||
|
||
# Set the directory where the notebooks are located | ||
NOTEBOOK_DIR = 'numcosmo_py' | ||
|
||
# Get a list of all subdirectories in the notebook directory | ||
subdirs = [] | ||
for root, dirs, files in os.walk(NOTEBOOK_DIR): | ||
if "__pycache__" not in root: | ||
normalized_path = os.path.normpath(root) | ||
if normalized_path.startswith("./"): | ||
normalized_path = normalized_path[2:] | ||
subdirs.append(normalized_path) | ||
|
||
subdirs.sort() | ||
|
||
# Generate the Makefile.am contents | ||
makefile_contents = "## Generated automatically with generate_py_makefile.py\n\n\n" | ||
python_files = [] | ||
|
||
for subdir in subdirs: | ||
# Get a list of all notebook files in the subdirectory | ||
for root, dirs, files in os.walk(subdir): | ||
if subdir == root: | ||
for file in files: | ||
if file.endswith('.py'): | ||
file = os.path.join(root, file) | ||
python_files.append(file) | ||
|
||
|
||
max_length = max(len(extra_dist_file) for extra_dist_file in python_files) | ||
python_files = [extra_dist_file.ljust(max_length) for extra_dist_file in python_files] | ||
|
||
# Generate the EXTRA_DIST variable | ||
makefile_contents += "nobase_python_PYTHON = \\\n" | ||
for file in python_files[:-1]: | ||
makefile_contents += f"\t{file} \\\n" | ||
makefile_contents += f"\t{python_files[-1]}\n" | ||
|
||
# Write the Makefile.am file | ||
with open('numcosmo_py.mk', 'w') as f: | ||
f.write(makefile_contents) | ||
|
Oops, something went wrong.