Closed srivarra closed 4 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Why does updating to alpineer v0.1.12 not cause issues the same way it did in toffy? https://github.com/angelolab/alpineer/issues/43
@camisowers I'm unable to replicate that issue occurring in Toffy. For example I ran the following on the example data:
io_utils.list_files(dir_name = os.path.join(base_dir, "image_data", "fov0"), substrs=".tiff")
And the I got the expected output:
Is there a specific combination of arguments which causes trouble?
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Fixes several issues plauging CI.
./github/scripts/get_example_dataset.py
download script.How did you implement your changes
Example Dataset
Simplified the CI download script.
conftest.py
directly access theGITHUB_WORKSPACE
environment variable which is set in CI, thus making the path OS agnostic.Modified the
example_dataset.ExampleDataset
class to:cache_dir
to the HuggingFace default~/.cache/huggingface/datasets
ifNone
is provided.dataset_paths
fromDatasetDict
to a regular dictionary in order to make the example datasets to be OS agnostic, and it's easier to access the paths.For example:
CI
GITHUB_WORKSPACE
as an environment variable in CI.macos-latest
(wherelatest
is12
) tomacos-13
v3
$\rightarrow$v4
v2
$\rightarrow$v3
v2
$\rightarrow$v3
v2
$\rightarrow$v3
v4
$\rightarrow$v5
v4
$\rightarrow$v5
v2.13
$\rightarrow$v2.16
v3
$\rightarrow$v4
v3
$\rightarrow$v5
v3
$\rightarrow$v4
v1.6
$\rightarrow$v1.8
coverage-<python version>-<runner>
, (e.x. coverage-3.9-windows-latest.lcov, artifact has the same name).main
, wheremacos-13
status checks for test and build are required. Removedmacos-latest
status checks.Dependencies
Updated the following:
alpineer
:0.1.10
$\rightarrow$0.1.12
Cython
:0.29.Z
$\rightarrow$>3.Y.Z
(for both buld-system and dependencies)pyFlowSOM
:0.1.15
$\rightarrow$0.1.16
scikit-image
:<=0.19.3
$\rightarrow$<0.19.3
(0.19.3
causes issues)The valid datset configs are gathered from the HuggingFace repo itself now, and
.github/scripts/get_example_dataset.py
is simplified.Pixel Clsutering
Adds
natsort
calls throughout the Pixie pipeline to avoid issues with channel ordering. Removed the parameterchannels
inpixel_som_clustering.py::cluster_pixels
as it is an unused parameter. Reflected the change in Notebook 2.Misc
Adjusted the runtime Protocol definition for
ClusterClassTemplate
to be syntactically correct. Removed a fewcibuildwheel
flags that are not needed.Remaining issues
CI / Dependencies
cibuildwheel
.numpy
to make use of these runners, however this requires us to drop thespatial-lda
requirement as it is not compatible withnumpy
versions1.24
and newer.scikit-image
also require the more recentnumpy
versions, therefore we would need to updatescikit-image
to0.20
or later. Requires us to re-address #1055.numpy
1.23+
is deprecated.numpy
is limited to1.24+
. (spatial-lda
andscikit-image
hinder this one)Dataset
There have been several improvements to the general dataset workflow with the HuggingFace API. We should consider seeing what new features exist to make the maintenance of it easier for us.