Skip to content

Commit

Permalink
Correcting the call to the misc module
Browse files Browse the repository at this point in the history
  • Loading branch information
yasseraleman committed Mar 7, 2024
1 parent 61cb144 commit ac6d210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions clabtoolkit/dicomtools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clabtoolkit as clt
import clabtoolkit.misctools as cltmisc
import os
from glob import glob
import subprocess
Expand Down Expand Up @@ -41,7 +41,7 @@ def _uncompress_dicom_session(dic_dir: str, subj_ids = None):
for i, subj_id in enumerate(subj_ids): # Loop along the IDs
subj_dir = os.path.join(dic_dir, subj_id)

clt._printprogressbar(
cltmisc._printprogressbar(
i + 1,
nsubj,
"Processing subject "
Expand Down Expand Up @@ -116,7 +116,7 @@ def _compress_dicom_session(dic_dir: str, subj_ids = None):
for i, subj_id in enumerate(subj_ids): # Loop along the IDs
subj_dir = os.path.join(dic_dir, subj_id)

clt._printprogressbar(
cltmisc._printprogressbar(
i + 1,
nsubj,
"Processing subject "
Expand Down
6 changes: 3 additions & 3 deletions clabtoolkit/parcellationtools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pandas as pd
import clabtoolkit as clt
import clabtoolkit.misctools as cltmisc


def _parc_tsv_table(codes, names, colors, tsv_filename):
Expand Down Expand Up @@ -30,7 +30,7 @@ def _parc_tsv_table(codes, names, colors, tsv_filename):
seg_hexcol = []
nrows, ncols = colors.shape
for i in np.arange(0, nrows):
seg_hexcol.append(clt.rgb2hex(colors[i, 0], colors[i, 1], colors[i, 2]))
seg_hexcol.append(cltmisc.rgb2hex(colors[i, 0], colors[i, 1], colors[i, 2]))

tsv_df = pd.DataFrame(
{
Expand Down Expand Up @@ -74,7 +74,7 @@ def tissue_seg_table(tsv_filename):
seg_hexcol = []
nrows, ncols = seg_rgbcol.shape
for i in np.arange(0, nrows):
seg_hexcol.append(clt.rgb2hex(seg_rgbcol[i, 0], seg_rgbcol[i, 1], seg_rgbcol[i, 2]))
seg_hexcol.append(cltmisc.rgb2hex(seg_rgbcol[i, 0], seg_rgbcol[i, 1], seg_rgbcol[i, 2]))

seg_df = pd.DataFrame(
{
Expand Down

0 comments on commit ac6d210

Please sign in to comment.