Skip to content

Commit

Permalink
Merge branch 'model_hashes_nicer' into user_calibrated_models
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpath authored Mar 29, 2024
2 parents 640014c + 9ab8a23 commit 1777019
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 47 deletions.
9 changes: 9 additions & 0 deletions petab_select/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the PEtab Select package."""
import string
import sys
from enum import Enum
from pathlib import Path
Expand Down Expand Up @@ -32,6 +33,14 @@
MODEL_CODE = 'model_code'
MODEL_HASH = 'model_hash'
MODEL_HASHES = 'model_hashes'
MODEL_HASH_DELIMITER = '-'
MODEL_SUBSPACE_INDICES_HASH_DELIMITER = '.'
MODEL_SUBSPACE_INDICES_HASH_MAP = (
# [0-9]+[A-Z]+[a-z]
string.digits
+ string.ascii_uppercase
+ string.ascii_lowercase
)
# If `predecessor_model_hash` is defined for a model, it is the ID of the model that the
# current model was/is to be compared to. This is part of the result and is
# only (optionally) set by the PEtab calibration tool. It is not defined by the
Expand Down
Loading

0 comments on commit 1777019

Please sign in to comment.