Skip to content

Conversation

@galenseilis
Copy link
Contributor

  • There are a lot of changes in this PR due to running ruff format . and ruff check --fix from the root of the project 'after' having added the ruff.toml file.
  • There should be no breaking changes to the code.

@galenseilis
Copy link
Contributor Author

galenseilis commented Apr 24, 2025

This should solve #119 by using np.inf rather than np.infty.

@galenseilis
Copy link
Contributor Author

Hmm, actually, I am unsure if these changes will be compatible with all the versions of Python being supported.

Copy link
Owner

@djordon djordon left a comment

Choose a reason for hiding this comment

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

Largely looks good. I just have one question about the latex related changes in some of the docstring changes.

def add_loss(self, qedge, *args, **kwargs): # qedge[2] is the edge_index of the queue
def add_loss(
self, qedge, *args, **kwargs
): # qedge[2] is the edge_index of the queue
Copy link
Owner

Choose a reason for hiding this comment

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

Can we move this comment to the next line?

Copy link
Owner

Choose a reason for hiding this comment

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

Actually, no need to make this change.

--------
Suppose you wanted to model the arrival process as a Poisson
random measure with rate function :math:`r(t) = 2 + \sin( 2\pi t)`.
random measure with rate function :math:`r(t) = 2 + \\sin( 2\\pi t)`.
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure that these latex docstring changes are correct. Things seem to render just fine on readthedocs.io.

@djordon djordon changed the title Add Ruff configuration and apply formating and linting changes. chore: add Ruff configuration and apply formating and linting changes Apr 24, 2025
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