Skip to content

Commit

Permalink
Merge pull request #291 from LCSB-BioCore/mo-no-mo-vmh
Browse files Browse the repository at this point in the history
Deleted unnecessary dependency

Former-commit-id: 8372bd2
  • Loading branch information
laurentheirendt committed Jun 1, 2021
2 parents 1e0d0d4 + 717ff7a commit a75f3d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ docs/src/notebooks/
docs/src/index.md
docs/src/howToContribute.md
docs/src/assets/output.gif

# ignore anything generated by tests
test/data
test/downloaded
5 changes: 0 additions & 5 deletions test/data_downloaded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ model_paths = Dict{String,String}(
df("e_coli_core.json"),
"7bedec10576cfe935b19218dc881f3fb14f890a1871448fc19a9b4ee15b448d8",
),
"mycoplasma-23114.mat" => download_data_file(
"https://www.vmh.life/files/reconstructions/AGORA/1.03/reconstructions/mat/Mycoplasma_hominis_ATCC_23114.mat",
df("mycoplasma-23114.mat"),
"03362073aa917f0691a0c896948f6e8eebe47f02dcbe0c3f00275fa87396e220",
),
"iJR904.mat" => download_data_file(
"http://bigg.ucsd.edu/static/models/iJR904.mat",
df("iJR904.mat"),
Expand Down
8 changes: 4 additions & 4 deletions test/io/mat.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

@testset "Import MAT model" begin
cp = load_model(CoreModel, model_paths["mycoplasma-23114.mat"])
cp = load_model(CoreModel, model_paths["iJR904.mat"])
@test cp isa CoreModel
@test size(cp.S) == (475, 496)
@test size(cp.S) == (761, 1075)
end

@testset "Save MAT model" begin
testpath = tmpfile("mycoplasma-clone.mat")
loaded = load_model(CoreModel, model_paths["mycoplasma-23114.mat"])
testpath = tmpfile("iJR904-clone.mat")
loaded = load_model(CoreModel, model_paths["iJR904.mat"])
save_model(loaded, testpath)
wrote = load_model(CoreModel, testpath)
@test wrote isa CoreModel
Expand Down

0 comments on commit a75f3d6

Please sign in to comment.