Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #192

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Small fixes #192

merged 2 commits into from
Oct 11, 2024

Conversation

inelgnu
Copy link
Contributor

@inelgnu inelgnu commented Oct 11, 2024

Hi There,

I am currently exploring the project’s source code, and I came across these small bugs which I took the liberty of fixing.

I've also modified the git repository address in the README because the owner has changed since.

Thank you for this project, and I hope to contribute more deeply to it in the future.

@inelgnu inelgnu marked this pull request as ready for review October 11, 2024 08:40
@inelgnu inelgnu marked this pull request as draft October 11, 2024 08:43
@inelgnu inelgnu marked this pull request as ready for review October 11, 2024 09:44
@josephdviviano
Copy link
Collaborator

Thank you very much for your interest and the PR! I am looking now.

@josephdviviano josephdviviano self-requested a review October 11, 2024 15:03
Copy link
Collaborator

@josephdviviano josephdviviano left a comment

Choose a reason for hiding this comment

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

Thanks - you caught some silly errors on my part! I really appreciate you taking the time to submit this PR :)

@@ -36,7 +36,7 @@ pip install torchgfn[scripts]
To install the cutting edge version (from the `main` branch):

```bash
git clone https://github.com/saleml/torchgfn.git
git clone https://github.com/GFNOrg/torchgfn.git
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oops, great catch, thank you.

@@ -155,16 +155,15 @@ def _add_objs(self, training_objects: Transitions | Trajectories | tuple[States]

# Add the terminating states to the buffer.
if self.terminating_states is not None:
assert terminating_states is not None
self.terminating_states.extend(terminating_states)
assert self.terminating_states is not None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again, thank you. Ideally I would have written a test to catch this. I've filed an issue on this here #198

@josephdviviano josephdviviano merged commit c62b5b0 into GFNOrg:master Oct 11, 2024
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.

2 participants