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

main -> develop (Release 0.4.1) #209

Merged
merged 22 commits into from
Nov 25, 2024
Merged

main -> develop (Release 0.4.1) #209

merged 22 commits into from
Nov 25, 2024

Conversation

gomezzz
Copy link
Collaborator

@gomezzz gomezzz commented Nov 25, 2024

Description

Summary of changes

This pull request includes several changes to update dependencies, improve compatibility, and add new utility functions. The most important changes include updating Python versions in workflows, improving integration functions, and adding new utility functions for handling compilation checks and tracing.

Workflow Updates:

Integration Function Improvements:

New Utility Functions:

Documentation and Testing:

Resolved Issues

N/A

How Has This Been Tested?

  • CI / CD

Related Pull Requests

N/A

gomezzz and others added 21 commits June 15, 2023 10:21
release -> main (for v0.4.0)
Try allowing to skip coverage comment
The test execution shows warnings about traces being potentially incorrect because the Python3 control flow is not completely recorded.
This includes conditions on the shape of the integration domain tensor.
Since the only arguments of the compiled integration function are the integrand and integration domain,
and the dimensionality of this integration domain is constant,
we can ignore the warnings.

After this change,
the two `get_jit_compiled_integrate` functions hide PyTorch trace compilation warnings with `warnings.filterwarnings`.
fixed a bug.
I fixed a bug for tutorial.rst.
The previous check if code is currently being compiled no longer works with new TensorFlow versions because the `Tensor` type is now called `SymbolicTensor`.

This change adds a helper function to check if code is being compiled for JAX, TensorFlow or PyTorch.
If tf.is_symbolic_tensor() is available, i.e. if the TensorFlow version is high enough,
we use this function to check if code is being compiled.

To avoid inconsistencies between backends,
the check for integration domain values is disabled if code is being compiled with PyTorch even if the check works with PyTorch.
Fix JIT compilation with TensorFlow >= 2.14.0
Fixing mamba setup in CI
Copy link

Overall Coverage

Coverage Report
FileStmtsMissCoverMissing
boole_test.py52492%128–131
gauss_test.py66691%72–73, 157–160
gradient_test.py97892%87–94, 109, 278–280
helper_functions.py44198%314
integration_grid_test.py69494%156–159
integration_test_functions.py91298%50, 137
integrator_types_test.py56984%58, 62, 114–120
monte_carlo_test.py66494%162–165
rng_test.py38879%64–71
simpson_test.py65691%76–77, 159–162
trapezoid_test.py66691%71–72, 156–159
utils_integration_test.py1271191%39–40, 217–219, 237–244
vegas_map_test.py73593%18, 155–158
vegas_stratification_test.py50492%93–96
vegas_test.py1021387%227–241
torchquad/integration
   base_integrator.py49786%28, 68–71, 75, 108, 112, 117
   boole.py30390%53, 74–78
   gaussian.py52590%83, 109, 124–127
   grid_integrator.py1012278%41, 161, 169–207, 269
   integration_grid.py49688%47–48, 55–56, 117, 120
   monte_carlo.py933167%103–104, 147–167, 169–197, 245
   rng.py623544%46–60, 72–75, 92–120, 140, 147, 154
   simpson.py29390%51, 70–74
   utils.py1171191%101, 140, 171, 175, 182, 194, 196, 202, 269, 278, 285
   vegas.py161498%96, 100–101, 189
   vegas_map.py98694%263–273
torchquad/plots
   plot_convergence.py131023%15–25
   plot_runtime.py8625%14–19
torchquad/utils
   deployment_test.py413515%18–62
   enable_cuda.py12650%16–21
   set_precision.py24579%35–38, 60–61, 68
   set_up_backend.py19195%12
TOTAL212628787% 

Tests Skipped Failures Errors Time
53 0 💤 20 ❌ 0 🔥 29.875s ⏱️

@gomezzz
Copy link
Collaborator Author

gomezzz commented Nov 25, 2024

Merging this and will continue to fix CI errors on develop

@gomezzz gomezzz merged commit 364e735 into develop Nov 25, 2024
5 checks passed
@gomezzz gomezzz mentioned this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants