fix: Correct typos, wrong test URL, and replace GE tags with Siemens-specific tags#20
Open
Devguru-codes wants to merge 1 commit intoOSIPI:mainfrom
Open
fix: Correct typos, wrong test URL, and replace GE tags with Siemens-specific tags#20Devguru-codes wants to merge 1 commit intoOSIPI:mainfrom
Devguru-codes wants to merge 1 commit intoOSIPI:mainfrom
Conversation
Author
Root CauseThis processor correctly validates and raises Simulation Output (before fix)I am working on it. |
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.
This PR fixes 5 related issues involving typos, wrong paths, and copy-pasted GE-specific code in Siemens sequence classes.
Changes
1. Siemens manufacturer typo (
siemens_base.py)2. Enum filename (
enums/)Updated imports in
enums/__init__.pyandsequences/factory.py.3. Wrong test URL (
tests/test_report.py)4. Siemens base uses GE tags (
siemens_base.py)Replaced entire
_extract_siemens_common_metadata()to use Siemens-specific tags:5. Siemens PLD uses GE tags (
siemens_basic_single_pld.py)Files Changed
package/src/pyaslreport/sequences/siemens/siemens_base.pypackage/src/pyaslreport/sequences/siemens/asl/siemens_basic_single_pld.pypackage/src/pyaslreport/enums/modaliy_enum.py→modality_enum.pypackage/src/pyaslreport/enums/__init__.pypackage/src/pyaslreport/sequences/factory.pyapps/backend/tests/test_report.pySanity Check Results
mainbranch (before fix)modality_enum.pymodaliy_enum.pymodality_enummodaliy_enumimport present/api/report/process/dicom/apiprefixsiemens_base.pyusesSIEMENS_*tagsGE_ASSET_R_FACTORsiemens_basic_single_pld.pyusesSIEMENS_*tagsGE_LABEL_DURATIONSummary: PASSED=0 FAILED=6
Typos_Wrong_Pathsbranch (after fix)modality_enum.pymodality_enum/api/report/process/dicomsiemens_base.pyusesSIEMENS_*tagssiemens_basic_single_pld.pyusesSIEMENS_*tagsModalityTypeValuesimports correctly after renameget_sequenceimports correctly after renameSummary: PASSED=8 FAILED=0
API Endpoint Validation
mainbranch — API ResponsesStatic checks on main:
Typos_Wrong_Pathsbranch — API ResponsesAPI Test Results (fix branch)
POST /api/report/process/dicomreturns 400 (no files)POST /report/process/dicom(wrong URL) returns 404POST /api/report/process/bidsreturns 200API Summary: PASSED=2 FAILED=1 (FAIL is pre-existing, not caused by this PR)
Overall: 10/11 checks pass. The single FAIL is a pre-existing 500 on the BIDS endpoint with no files, unrelated to this PR.
Resolves #19
Found a new issue. I will update this PR to fix it.