Skip to content

Commit

Permalink
fix the case where there is no scoring data
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-weirather committed Jul 18, 2024
1 parent ae04ac2 commit 4d98033
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ RUN pip3 install pandas \
&& pip3 install scikit-image \
&& pip3 install imagecodecs \
&& pip3 install jsonschema \
&& pip3 install opencv-python-headless
&& pip3 install opencv-python-headless \
&& pip3 install pythologist-test-images

ARG user=jupyter_user
ARG user_id=999
Expand Down
9 changes: 5 additions & 4 deletions pythologist/reader/formats/inform/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,11 @@ def _read_data(self,
# t_feature_definition.append([_v,'-',0])
# t_feature_basics.append([_v,'InForm threshold analysis'])

for i,r in _thresholds.iterrows():
t_feature_definition.append([r['gate_label'],'+',1])
t_feature_definition.append([r['gate_label'],'-',0])
t_feature_basics.append([r['gate_label'],'InForm threshold analysis'])
if score_data_file is not None:
for i,r in _thresholds.iterrows():
t_feature_definition.append([r['gate_label'],'+',1])
t_feature_definition.append([r['gate_label'],'-',0])
t_feature_basics.append([r['gate_label'],'InForm threshold analysis'])

features = pd.DataFrame(me_feature_basics+t_feature_basics,columns=['feature_label','feature_description'])
features.index.name = 'feature_index'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='pythologist',
version='2.1.0',
version='2.1.1',
test_suite='nose2.collector.collector',
description='inForm PerkinElmer Reader - Python interface to read outputs of the PerkinElmer inForm software;\
Pythologist-image-utilities: Functions to assist in working with image files;\
Expand Down

0 comments on commit 4d98033

Please sign in to comment.