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

update to julia v1.6 and DataFrames v1.0 #5

Merged
merged 8 commits into from
May 7, 2021
Merged

Conversation

reumle
Copy link

@reumle reumle commented May 1, 2021

Very basic spring cleaning, Only light syntax changes were needed to update the package.

Sorry for language in french in some earlier commits.

  • Still one warning during test execution.
Testing SST Life
WARNING: using Distributions.Product in module Main conflicts with an existing identifier.
Start SSTLife.jl
rtk_start     :  158.58

PS first pull request ever, so feel free to comment on what should be done better!

reumle added 8 commits April 21, 2021 22:38
…s, also name collision ("Product") between this package and package "Distributions". Also add project.toml, etc.

Project.toml
with dataframes at version 0.21 , 0.22 gives errors.

Manifest.toml
(machine generated)

src\Life\Life_Constructors.jl
a few changes to account for df[i,:] being a DataFrameRow

src\S2Life\S2Life_Constructors.jl
conversion to a Symbol, or error.

test\S2Life_Test.jl
test\S2Life.jl
immaterial cleaning up.
…nings.

src\Life\Life_Constructors.jl
src\Life\Life_Functions.jl
src\S2Life\S2Life_Functions.jl
test\S2Life_Test.jl
test\runtests.jl
qui apparaissaient dans le premier item de la test suite println("Testing S2 Life") . Essentiellement des appels de fonctions de dataframe.jl

test\Life_Input.jl
remplacé df[:myvar] par df[!myvar]

src\Life\Life_Functions.jl
idem
egalement remplacement de = (assignation) par .=

src\Life\Life_Constructors.jl
idem
il reste un warning de collision de nom sur Distributions.Product , dans le test de SST.

src\ECModel\ECModel_Functions.jl
remplacer df[:myvar] par df[!,:myvar]

src\S2NonLife\S2NonLife_Functions.jl
remplacer df[:myvar] par df[!,:myvar]

test\ECModel.jl
idem

test\ECModel_Input.jl
idem

test\S2NonLife.jl
idem

test\runtests.jl
idem
some deprecation warnings

Project.toml
change DataFrames= 0.21  to DataFrames= 0.22
due to deprecated convert(Array,df.dfr) or convert(Array,df.dfcol). All `convert`s in src files done, some `convert`s remain in test files.

src\Life\Life_Functions.jl
replace convert(Array,..)  by Vector(..)

src\S2Life\S2Life_Functions.jl
replace convert(Array,..)  by Vector(..)

test\S2Life_Test.jl
replace convert(Array,..)  by Vector(..)
@reumle reumle changed the title update to julia v1.6 and dataframe v1 update to julia v1.6 and DataFrames v1.0 May 1, 2021
@mkriele mkriele merged commit 28c71e7 into mkriele:master May 7, 2021
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.

2 participants