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

Move main functionality to top-level of module + add example notebooks to CI #30

Merged
merged 11 commits into from
Jun 1, 2023

Conversation

phinate
Copy link
Collaborator

@phinate phinate commented May 31, 2023

Main effect: instead of

from signax.signature import signature

you can now do

from signax import signature

The module called signature is now renamed to signatures to avoid double-naming.

This PR also deprecates signature_flattened, and instead opts to use the more explicit route of manually calling flatten in the few places it's needed.

One additional bonus: the notebooks in examples have been added to CI to make sure we don't break them (the whole key thing with equinox.Sequential comes into play there!)

@phinate phinate changed the title Move main functionality to top-level of module Move main functionality to top-level of module + add example notebooks to CI May 31, 2023
@phinate phinate requested a review from anh-tong May 31, 2023 14:21
@phinate
Copy link
Collaborator Author

phinate commented May 31, 2023

oh, and a suggestion: since this changes the API, I would make this release 0.2.0 :)

Comment on lines +73 to +81
- name: Run examples
run: |
cd examples
python -m pip install -r requirements.txt
python -m pip install jupyter nbclient
jupyter execute estimate_hurst.ipynb
jupyter execute generative_model.ipynb
jupyter execute inversion.ipynb

Copy link
Owner

Choose a reason for hiding this comment

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

I don't know much about running notebooks in CI. I wonder if this is a common practice. Anyway, I think it's okay for these notebooks since they may not take much time.

@anh-tong
Copy link
Owner

anh-tong commented Jun 1, 2023

oh, and a suggestion: since this changes the API, I would make this release 0.2.0 :)

Absolutely, I agree. Please go ahead. Thanks for contributing.

@anh-tong anh-tong merged commit f177dab into main Jun 1, 2023
@anh-tong anh-tong deleted the top-level branch June 10, 2023 13:53
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