CompressedSensing.jl
CompressedSensing.jl copied to clipboard
"WARNING: int(x::AbstractFloat) is deprecated, use round(Int,x) instead."
No big deal; I thought you might like to know.
After installing package CompressedSensing from Julia repository, the following warning is repeated numerous times:
WARNING: int(x::AbstractFloat) is deprecated, use round(Int,x) instead. in depwarn at ./deprecated.jl:73 while loading /home/elkins/projects/CompressedSensing.jl-master/test/runtests.jl, in expression starting on line 14
I could not find an occurrence of "AbstractFloat" in the github repository. Maybe, Julia's copy is older? I am using Julia version 0.4.7 after installing it from Xubuntu.
Thanks for the documentation and all of the code-line comments. Quite instructive.
If you check the julia help (julia>?AbstractFloat
), you will see that AbstractFloat is still defined.
The deprecation warning is about the function int
, which has been removed in subsequent julia verisions.
In #3 (not merged) I updated the code such that it should now run on newer versions without warnings.
As a side note: Version 0.4.7 is no longer maintained and the most recent version is 0.6.2.
julia packages from most Linux distros are out of data and it is better to build it from source or download generic Linux binaries from julialang.org/downloads
Thanks. I misread the perpetrator of the warning.
julia> ?AbstractFloat ERROR: UndefVarError: ? not defined
The ERROR might be from my current version. I'll take your suggestion and get 0.6.2. Getting JuliaPro MKL - looks interesting and huge [(=:].
It's a pity that the DEB- and RPM- based distros are behind. I prefer using apt
or yum
to stay current for all my software (one-stop shopping).
Did you include a white space before the ?
, because the line julia>
should change to help?>
after pressing ?
.
Accessing the documentations works the same way for 0.4 and stable (0.6.2 at the moment)
I must have had an inadvertent leading space. Wow, a modern interpreter that cannot strip off leading spaces? Compiler Construction 101.
Anyways, thanks for pointing that out.