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

Update fmr.py #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions bvbabel/fmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,14 @@ def read_fmr(filename, rearrange_data_axes=True):

# -------------------------------------------------------------------------
# Access data from the separate STC file
print("***Add changes***")
dirname = os.path.dirname(filename)
filename_stc = os.path.join(dirname, "{}.stc".format(header["Prefix"]))

data_img = read_stc(filename_stc, nr_slices=header["NrOfSlices"],
nr_volumes=header["NrOfVolumes"],
res_x=header["ResolutionX"],
res_y=header["ResolutionY"],
res_x=header["ResolutionY"],
res_y=header["ResolutionX"],
data_type=header["DataType"],
rearrange_data_axes=rearrange_data_axes)

Expand Down