Skip to content

Commit

Permalink
Minor fixes to test handling to get them running again (#7)
Browse files Browse the repository at this point in the history
* Minor fixes to test handling to get them running again

* CI tweaking

* CI tweaking
  • Loading branch information
csachs committed Jan 12, 2021
1 parent b3c2cad commit acf6a82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ before_build:

build_script:
# first install the latest version, that fetches all deps
- cmd: conda install -y mycelyso mycelyso-inspector
- cmd: conda install -y python==3.7 mycelyso mycelyso-inspector
# there seems to be an old version around
- cmd: conda update -y pyasn1
# problems with certain versions in conjunction with pyinstaller
- cmd: conda install -y scipy==0.19.1 pandas==0.20.3
# ... then install the git version. if deps would be missing pip would now try to get'em
- cmd: python setup.py install
# this is the starter, full of implicit exports to steer pyinstaller into the right direction
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python
python:
- "3.6"
- "3.7"
- "3.9"

install: "pip install ."

Expand Down
4 changes: 2 additions & 2 deletions mycelyso/misc/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def prepare_optimized_regression(x, y):
>>> y = x * 5 + 10
>>> y[0:10] = 0 # break our nice linear curve
>>> prepare_optimized_regression(x, y)
OrderedDict([('slope', 5.0), ('intercept', 10.0), ('rvalue', 0.9999999999999999), ('pvalue', 0.0), \
('stderr', 7.942345602646859e-09), ('begin_index', 10), ('end_index', 100), ('begin', 11.0), ('end', 100.0)])
{'slope': 5.0, 'intercept': 10.0, 'rvalue': 0.9999999999999999, 'pvalue': 0.0, 'stderr': 7.942345602646859e-09, \
'intercept_stderr': 4.867022899201688e-07, 'begin_index': 10, 'end_index': 100, 'begin': 11.0, 'end': 100.0}
"""
condition = ('rvalue', 'gt', 0.9)
begin, end, regression = find_linear_window(x, y, condition=condition, return_begin_end=True)
Expand Down
2 changes: 0 additions & 2 deletions mycelyso/test/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ def main():
import mycelyso.pilyso.application.application
import mycelyso.pilyso.application.helper

import mycelyso.pilyso.imagestack.imagestack

import mycelyso.pilyso.misc.h5writer
import mycelyso.pilyso.misc.processpool

Expand Down

0 comments on commit acf6a82

Please sign in to comment.