Skip to content

Fix project setup and numerous bugs to make it runnable. - #5

Open
IranDec wants to merge 2 commits into
WillHua127:mainfrom
IranDec:fix-project-setup-and-bugs
Open

Fix project setup and numerous bugs to make it runnable.#5
IranDec wants to merge 2 commits into
WillHua127:mainfrom
IranDec:fix-project-setup-and-bugs

Conversation

@IranDec

@IranDec IranDec commented Sep 15, 2025

Copy link
Copy Markdown

This commit addresses several issues that prevented the project from running out of the box.

  • Add missing configs module: The configs/datasets_config.py file, which is imported by several scripts, was missing. It has been recreated with necessary data for the QM9 dataset based on analysis of the code and external resources.
  • Fix Cython compilation: The algos.pyx file contained outdated syntax that was incompatible with modern versions of Python and NumPy. It has been updated to use numpy.int64 and numpy.int64_t. A setup_algos.py script has also been added to facilitate manual compilation of this module.
  • Fix bug in DistributionNodes: The DistributionNodes class in qm9/models.py had a bug in its constructor that caused an IndexError. This has been corrected.
  • Add requirements.txt: A requirements.txt file has been added to list all the necessary dependencies for easy installation.
  • Add README.md: A comprehensive README.md file has been added with instructions on how to set up the environment and run the code.

google-labs-jules Bot and others added 2 commits September 15, 2025 21:16
This commit addresses several issues that prevented the project from running out of the box.

- **Add missing `configs` module:** The `configs/datasets_config.py` file, which is imported by several scripts, was missing. It has been recreated with necessary data for the QM9 dataset based on analysis of the code and external resources.
- **Fix Cython compilation:** The `algos.pyx` file contained outdated syntax that was incompatible with modern versions of Python and NumPy. It has been updated to use `numpy.int64` and `numpy.int64_t`. A `setup_algos.py` script has also been added to facilitate manual compilation of this module.
- **Fix bug in `DistributionNodes`:** The `DistributionNodes` class in `qm9/models.py` had a bug in its constructor that caused an `IndexError`. This has been corrected.
- **Add `requirements.txt`:** A `requirements.txt` file has been added to list all the necessary dependencies for easy installation.
- **Add `README.md`:** A comprehensive `README.md` file has been added with instructions on how to set up the environment and run the code.
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.

1 participant