generated from ArcanaFramework/fileformats-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ArcanaFramework/develop
Added Siemens Biograph Raw data types
- Loading branch information
Showing
8 changed files
with
126 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from .mri import ( # noqa: F401 | ||
Kspace, | ||
Rda, | ||
) | ||
from .pet import ( | ||
PetRawData, | ||
PetListMode, | ||
PetSinogram, | ||
PetCountRate, | ||
PetNormalisation, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetListMode, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetSinogram, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetCountRate, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetNormalisation, | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from fileformats.generic import File | ||
|
||
|
||
class Kspace(File): | ||
|
||
binary = True | ||
iana_mime = None | ||
|
||
|
||
class Rda(File): | ||
"""MRS format""" | ||
|
||
ext = ".rda" | ||
binary = True |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from .base import ( | ||
PetRawData, | ||
PetListMode, | ||
PetSinogram, | ||
PetCountRate, | ||
PetNormalisation, | ||
) | ||
from .siemens import ( | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetListMode, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetSinogram, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetCountRate, | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetNormalisation, | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from fileformats.generic import File | ||
|
||
|
||
class PetRawData(File): | ||
|
||
binary = True | ||
iana_mime = None | ||
|
||
|
||
class PetListMode(PetRawData): | ||
"raw projection data" | ||
iana_mime = None | ||
|
||
|
||
class PetSinogram(PetRawData): | ||
"histogrammed projection data in a reconstruction-friendly format" | ||
iana_mime = None | ||
|
||
|
||
class PetCountRate(PetRawData): | ||
"number of prompt/random/single events per unit time" | ||
iana_mime = None | ||
|
||
|
||
class PetNormalisation(PetRawData): | ||
"normalisation scan or the current cross calibration factor" | ||
iana_mime = None |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from .base import ( | ||
PetRawData, | ||
PetListMode, | ||
PetSinogram, | ||
PetCountRate, | ||
PetNormalisation, | ||
) | ||
|
||
|
||
class Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData(PetRawData): | ||
iana_mime = None | ||
ext = ".ptd" | ||
|
||
|
||
class Vnd_Siemens_Biograph128Vision_Vr20b_PetListMode( | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, PetListMode | ||
): | ||
pass | ||
|
||
|
||
class Vnd_Siemens_Biograph128Vision_Vr20b_PetSinogram( | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, PetSinogram | ||
): | ||
"histogrammed projection data in a reconstruction-friendly format" | ||
|
||
|
||
class Vnd_Siemens_Biograph128Vision_Vr20b_PetCountRate( | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, PetCountRate | ||
): | ||
"number of prompt/random/single events per unit time" | ||
|
||
|
||
class Vnd_Siemens_Biograph128Vision_Vr20b_PetNormalisation( | ||
Vnd_Siemens_Biograph128Vision_Vr20b_PetRawData, PetNormalisation | ||
): | ||
"normalisation scan or the current cross calibration factor" |