Skip to content

Conversation

@alirezazolanvari
Copy link
Member

Reference Issues/PRs

#30

What does this implement/fix? Explain your changes.

  • Weibull drug release model is added

@alirezazolanvari alirezazolanvari added this to the drux v0.3 milestone Oct 22, 2025
@alirezazolanvari alirezazolanvari self-assigned this Oct 22, 2025
@alirezazolanvari alirezazolanvari added enhancement New feature or request new model labels Oct 22, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.39%. Comparing base (844612a) to head (709a293).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #32      +/-   ##
==========================================
+ Coverage   98.07%   98.39%   +0.33%     
==========================================
  Files           7        8       +1     
  Lines         155      186      +31     
  Branches       18       21       +3     
==========================================
+ Hits          152      183      +31     
  Misses          2        2              
  Partials        1        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.

@alirezazolanvari alirezazolanvari marked this pull request as ready for review October 22, 2025 09:02
CHANGELOG.md Outdated
## [Unreleased]
### Changed
- `Python 3.14` added to `test.yml`
- Weibull model
Copy link
Member

Choose a reason for hiding this comment

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

Please relocate this line to the ### Added section.

model.simulate(duration=100, time_step=1)
model.plot(show=True)
```
<img src="./otherfiles/weibull_plot.png" alt="Weibull Plot">
Copy link
Member

Choose a reason for hiding this comment

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

Please convert this link to an absolute format (https://github.com/openscilab/drux/raw/...)


def _validate_parameters(self) -> None:
"""Validate the parameters of the Weibull model."""
if self._parameters.M <= 0:
Copy link
Member

Choose a reason for hiding this comment

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

Here, I believe we can change this line to self._parameters.M < 0. It's a bit weird, but theoretically, it is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request new model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants