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

Nicer model hashes; model_hash_to_model method #86

Merged
merged 13 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading