Skip to content

Conversation

@JR-1991
Copy link
Member

@JR-1991 JR-1991 commented Sep 22, 2025

This pull request makes improvements to the pyenzyme/versions/v2.py data model, primarily by the addition of a fit attribute to parameters and the consistent placement of the "schema": "https://schema.org/" entry in context definitions. This

Parameter handling improvements:

  • Added an optional fit attribute to the Parameter model to indicate whether the parameter should be varied during optimization. This is now included both in the model definition and when adding parameters via add_to_parameters. [1] [2] [3]

Submodule update:

  • Updated the specs submodule to the current main branch of EnzymeML specs, reflecting the latest changes in the external dependency.

Related PRs

Since this is a general change to the EnzymeML data model, other libraries have been synced as well. Once this PR is merged, all others will be merged as well:


This change is Reviewable

Advanced the specs submodule pointer from 95b520a to c5dc877 to incorporate the latest changes from the specs repository.
Introduces an optional 'fit' boolean to the Parameter model and related method, indicating if a parameter should be varied during optimization. Also reorders the '@context' dictionary entries for consistency across multiple classes.
@JR-1991 JR-1991 requested a review from jmrohwer September 22, 2025 11:30
@JR-1991 JR-1991 self-assigned this Sep 22, 2025
@JR-1991 JR-1991 added this to EnzymeML Sep 22, 2025
@JR-1991 JR-1991 added the enhancement New feature or request label Sep 22, 2025
@JR-1991 JR-1991 moved this to QA in EnzymeML Sep 22, 2025
@jmrohwer
Copy link
Member

jmrohwer commented Sep 22, 2025

I have added two further commits to handle non-fitted parameters in the ThinLayer itself. Also, the standard errors were not written back to the new EnzymeML document after fitting, which is now fixed. @JR-1991 please review.

Tested with a real-life dataset used in last-weeks CRC1333 course.

@jmrohwer jmrohwer marked this pull request as ready for review September 22, 2025 16:00
@JR-1991
Copy link
Member Author

JR-1991 commented Sep 22, 2025

Looks good to me - Merging!

@JR-1991 JR-1991 merged commit 8a29bb7 into main Sep 22, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from QA to Done in EnzymeML Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants