Open
Conversation
GeorgWa
approved these changes
Mar 9, 2026
| with open(path, "w") as f: | ||
| json.dump(self.data, f) | ||
|
|
||
| def __getitem__(self, key: str): |
Collaborator
There was a problem hiding this comment.
Is this recursive?
or is there any assumption about the data structure only having two levels?
Collaborator
Author
There was a problem hiding this comment.
good catch, (how) should we handle this for now?
leave this half-baked solution (and add a comment)?
or revert this part of the PR and do it properly later?
alphadia/workflow/config.py
Outdated
| ConfigKeys.QUANT_DIRECTORY, | ||
| ConfigKeys.RAW_PATHS, | ||
| ConfigKeys.FASTA_PATHS, | ||
| ("library_prediction", "peptdeep_model_path"), |
Collaborator
There was a problem hiding this comment.
Should we also move them to constants?
Collaborator
Author
There was a problem hiding this comment.
There's two options for nesting these constants, cf. the diff here:
the downside of the first (= left side of diff):
- unintuitive access
config[ConfigKeys.GENERAL][ConfigKeys.General.SAVE_FIGURES], less cohesion in the definitions
downside of the second:
- IDE does not offer autocompletion on
ConfigKeys.GENERAL. ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
psm.parquet/fragment.parquetand reported failed search although all was fine