Skip to content

Commit

Permalink
format, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Oct 11, 2023
1 parent c179c0a commit 85457d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ $(TYPEDSIGNATURES)
Get the compartment of a chosen metabolite from [`SBMLModel`](@ref).
"""
A.metabolite_compartment(model::SBMLModel, mid::String) = model.sbml.species[mid].compartment
A.metabolite_compartment(model::SBMLModel, mid::String) =
model.sbml.species[mid].compartment

"""
$(TYPEDSIGNATURES)
Expand Down
3 changes: 1 addition & 2 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ $(TYPEDSIGNATURES)
Load and return a SBML XML model in `file_name`.
"""
load(::Type{SBMLModel}, file_name::String)::SBMLModel =
SBMLModel(SBML.readSBML(file_name))
load(::Type{SBMLModel}, file_name::String)::SBMLModel = SBMLModel(SBML.readSBML(file_name))

"""
$(TYPEDSIGNATURES)
Expand Down
2 changes: 1 addition & 1 deletion src/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ end
sbml_import_notes(notes::Maybe{String})::Notes =
isnothing(notes) ? Notes() : Notes("" => [notes])

sbml_export_notes(notes::Notes)::Maybe{String}
sbml_export_notes(notes::Notes)::Maybe{String} =
isempty(notes) ? nothing : error("Data loss: notes can not exported to SBML")

0 comments on commit 85457d5

Please sign in to comment.