Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to Julia 1.x #32

Merged
merged 9 commits into from
Jan 30, 2020
Merged

upgrade to Julia 1.x #32

merged 9 commits into from
Jan 30, 2020

Conversation

johnnychen94
Copy link
Collaborator

@johnnychen94 johnnychen94 commented Dec 16, 2019

The update work is split into several PRs(e.g., #27, #31) and will be merged into this PR/branch first. There will be a lot of changes, so it's not suitable to directly review this.

Basically, the roads are:

When all things get settled done, I will merge this branch into master.

@johnnychen94 johnnychen94 added this to the v0.6 milestone Dec 19, 2019
johnnychen94 and others added 5 commits January 29, 2020 15:46
Github action supports more concurrent jobs than travis CI
change indexes to indices

change Range to AbstractRange

use Base.showarg

update CI and README

fix basic deprecations

fix showcompact deprecation

fix channel ops and tests

fix convert ops

work on mapfun ops
* add Project.toml

* update test for cache and minor fix

* update test for rotation and minor fix

* update flipdm to reverse

JuliaLang/julia#26369

* update test for crop and minor fix

* update test for resize

* update test for scale and minor fix

* update test for zoom and minor fix

* WIP: update test for distortion and minor fix

* update test for either and minor fix

* fix pipeline test

* update summary reference for distortedview

* WIP: fix tests for augment and operations

* drop julia 0.7 and update CI

* use FileIO v1.1.0

JuliaIO/FileIO.jl#245

* add 1.x tests to CI

* revert back unnecessary changes

* test windows in travis

* fix randomly failed test cases for inacuraccy reasons

* update to julia 1.1

* maybe_copy doesn't explain its usage
* replace Slice by OffsetArrays.IdentityUnitRange

JuliaArrays/OffsetArrays.jl#62

* update to julia 1.2 -- part I

* WIP: update to julia 1.2 -- part II

detect some type instable test cases, only the outmost wrapper is
instable here

* unify how types are displayed

Only meta operations such as Either, Pipeline doesn't have Agumentor
prefix

* add more test versions

* move safe_rand to compat.jl

rand is thread-safe in julia 1.3

* don't allow failures for julia 1.3

* fix commit "WIP: update 1.0"

* use explicit and intuitive CartesianIndex(1, 1)

* add method specialization for tweight

* allow FileIO 1.2

* fix type instability for Either

* update reference for FixedPointNumbers v0.7

* try: relax equality check for scale

* restore test cases in tst_scale.jl

* Revert "add method specialization for tweight"

This reverts commit a698382.

* Augmentor v0.6.0-pre
@johnnychen94
Copy link
Collaborator Author

johnnychen94 commented Jan 30, 2020

Commits 40820af and 03d97a0 were pushed to master and rebased to this branch; then I realized that they won't actually work before this PR is ready. To disable daily notification of failed GitHub action jobs, I deleted these two commits from the master branch so that there will be no scheduled jobs running.

To keep track of history, this PR shouldn't be merged with "squash and merge" option.

@@ -93,7 +93,7 @@ augment(img, ElasticDistortion(15, 15; scale = 0.1))
# distort everything more smoothly.
augment(img, ElasticDistortion(10, 10; sigma = 4, iter=3, border=true))
```
""" ->
"""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure?

Copy link
Collaborator Author

@johnnychen94 johnnychen94 Jan 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, these two changes are made in 8dbe2b1 (#27 ) and my changes #31 is built on top of that.

I haven't observe such -> usage after Julia 1.0; so I guess it's an deprecated syntax

help?> ElasticDistortion

works normally.

test/operations/tst_mapfun.jl Outdated Show resolved Hide resolved
If upstream package (e.g., Interpolations, FixedPointNumbers) doesn't
provide such specialization, then we add one here.

This trick avoids incremental compilation warnings
OffsetArray might hit accuracy issue for affine
Some affine operations (e.g., scale and zoom) might hit accuracy
issues when images are upsampled

This is a temporarily workaround to issue #38 (by disabling the tests)
@johnnychen94 johnnychen94 changed the title [WIP] update to latest julia and package version upgrade to Julia 1.x Jan 30, 2020
@johnnychen94
Copy link
Collaborator Author

johnnychen94 commented Jan 30, 2020

Since this branch is functioning now with all deprecations fixed, I'm merging this branch to master. From now on, compat upgrades(e.g., OffsetArrays 1.0 is a breaking change) and new features can be added to the master branch separately.

@johnnychen94 johnnychen94 merged commit f2e73eb into master Jan 30, 2020
@johnnychen94 johnnychen94 deleted the jc/1.x branch January 30, 2020 15:16
@johnnychen94
Copy link
Collaborator Author

johnnychen94 commented Jan 30, 2020

@Evizero since most CI are moved to github action, can you uninstall appveyor?

Submitting coverage report via github action doesn't work for PRs from other forks. (It's an upstream github action issue), hence travis is still required to upload coverage report

@Evizero
Copy link
Owner

Evizero commented Jan 31, 2020

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants