Skip to content

Update addJob() to accept multiple degradation jobs (functions)#318

Open
RDaxini wants to merge 6 commits intomainfrom
materials
Open

Update addJob() to accept multiple degradation jobs (functions)#318
RDaxini wants to merge 6 commits intomainfrom
materials

Conversation

@RDaxini
Copy link
Collaborator

@RDaxini RDaxini commented Feb 18, 2026

Describe your changes

Basic principle of this change:
extracts the original "adding" component to a helper function, creates a modified addJob function loops over the helper, and includes checks for compatibility (raises errors otherwise)

other notes:
func_kwarg argument is removed. now, func takes both the function(s) and the(ir) respective argument(s)

Issue ticket number and link

Fixes #181

Type of change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I have performed a self-review of my code
  • Code changes are covered by tests.
  • Code changes have been evaluated for compatibility/integration with Scenario analysis (for future PRs)
  • Code changes have been evaluated for compatibility/integration with geospatial autotemplating (for future PRs)
  • New functions added to init.py
  • API.rst is up to date, along with other sphinx docs pages
  • Example notebooks are rerun and differences in results scrutinized
  • What's new changelog has been updated in the docs

@RDaxini RDaxini added this to the v0.8.0 milestone Feb 18, 2026
@RDaxini RDaxini added enhancement New feature or request api Pull requests that update the core functions and classes labels Feb 18, 2026
@RDaxini RDaxini marked this pull request as draft February 18, 2026 20:43
@RDaxini RDaxini changed the title Update addJob() to accept multiple degradation jobs (functions) [WIP] Update addJob() to accept multiple degradation jobs (functions) Feb 18, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.97%. Comparing base (2bacff5) to head (59562b4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #318      +/-   ##
==========================================
+ Coverage   74.72%   74.97%   +0.24%     
==========================================
  Files          41       41              
  Lines        4823     4867      +44     
==========================================
+ Hits         3604     3649      +45     
+ Misses       1219     1218       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

checks single job, tuple (job, kwargs), and list of multiple jobs/kwargs
@RDaxini RDaxini marked this pull request as ready for review February 18, 2026 23:10
@RDaxini RDaxini changed the title [WIP] Update addJob() to accept multiple degradation jobs (functions) Update addJob() to accept multiple degradation jobs (functions) Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Pull requests that update the core functions and classes enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multi-material and multi-mode degradation modeling

2 participants