Skip to content

Commit 54bd590

Browse files
committed
minor
1 parent b7b7d31 commit 54bd590

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

docs/source/create_phantom.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
##############
2+
Create Phantom
3+
##############

docs/source/file format.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Welcome to SpinWalk's documentation!
1212

1313
installation
1414
tutorial
15-
file format
15+
io_file
16+
create_phantom
1617
View on GitHub <https://github.com/aghaeifar/SpinWalk>

docs/source/io_file.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
###############
2+
Data Structures
3+
###############

docs/source/tutorial.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
########
12
Tutorial
2-
*********
3+
########

src/shapes/cylinder.cu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ void cylinder::generate_mask_fieldmap()
168168
int32_t cyl_rad_vox, cyl_pnt_vox[3];
169169

170170
std::cout<<"B0 direction: ["<<B0[0]<<", "<<B0[1]<<", "<<B0[2]<<"]\n";
171-
std::cout<<"Allocating memory..."<<std::endl;
171+
std::cout<<"Allocating memory...";
172172
m_fieldmap.resize(m_calc_fieldmap ? res3:0, 0.f);
173173
m_mask.resize(res3, 0);
174+
std::cout<<"Done!\n";
174175
float v_size = m_fov / m_resolution;
175176

176177
float cyl_dir[3] = {0.0, 0.0, 1.0};
@@ -181,6 +182,7 @@ void cylinder::generate_mask_fieldmap()
181182
theta_c2 = theta_c * theta_c;
182183
theta_s2 = 1. - theta_c2; // sin^2(theta)
183184

185+
std::cout<<"Generating...\n";
184186
ProgressBar bar{option::ShowPercentage{true}, option::Start{"["}, option::Fill{"="}, option::Lead{">"}, option::End{"]"}};
185187
auto start = std::chrono::high_resolution_clock::now();
186188
for (size_t c = 0; c < m_cylinder_radii.size(); c++)

src/shapes/sphere.cu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,13 @@ void sphere::generate_mask_fieldmap()
109109
int32_t x_min, x_max, y_min, y_max, z_min, z_max;
110110
int32_t sph_rad_vox, sph_center_vox[3];
111111

112-
std::cout<<"Allocating memory..."<<std::endl;
112+
std::cout<<"Allocating memory...";
113113
m_fieldmap.resize(m_calc_fieldmap ? res3:0, 0.f);
114114
m_mask.resize(res3, 0);
115+
std::cout<<"Done!\n";
115116
float v_size = m_fov / m_resolution;
116117

118+
std::cout << "Generating...\n";
117119
ProgressBar bar{option::ShowPercentage{true}, option::Start{"["}, option::Fill{"="}, option::Lead{">"}, option::End{"]"}, option::FontStyles{std::vector<FontStyle>{FontStyle::bold}}};
118120
auto start = std::chrono::high_resolution_clock::now();
119121
for (size_t c = 0; c < m_sphere_radii.size(); c++)

0 commit comments

Comments
 (0)