Skip to content

Commit

Permalink
Update process_multiSample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwang12 authored Nov 12, 2024
1 parent 50ba53c commit df0c5ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mNSF/process_multiSample.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_D_fromAnnData(ad):
return D


def get_listD_chunked(list_D_,list_nchunk=[1]*len(list_D_)):
def get_listD_chunked(list_D_,list_nchunk=None):
"""
Prepare the training data by creating TensorFlow Datasets.
Expand All @@ -122,6 +122,7 @@ def get_listD_chunked(list_D_,list_nchunk=[1]*len(list_D_)):
Returns:
list_Dtrain: List of TensorFlow Datasets for training
"""
if(list_nchunk is None):list_nchunk=[1]*len(list_D_)
list_Dtrain=list()
nsample=len(list_D_)
# data chunking
Expand Down

0 comments on commit df0c5ba

Please sign in to comment.