Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
0a220c9e
Commit
0a220c9e
authored
Oct 14, 2021
by
Miroslav Kratochvil
Browse files
fix Serialized type boundedness
parent
1c545381
Changes
2
Show whitespace changes
Inline
Side-by-side
src/base/types/Serialized.jl
View file @
0a220c9e
...
...
@@ -12,6 +12,10 @@ internal model will be loaded on-demand by using any accessor, or by calling
mutable struct
Serialized
{
M
}
<:
MetabolicModel
where
{
M
<:
MetabolicModel
}
m
::
Maybe
{
M
}
filename
::
String
Serialized
{
T
}(
filename
::
String
)
where
{
T
}
=
new
{
T
}(
nothing
,
filename
)
Serialized
(
model
::
T
,
filename
::
String
)
where
{
T
<:
MetabolicModel
}
=
new
{
T
}(
model
,
filename
)
end
function
_on_precached
(
m
::
Serialized
,
f
,
args
...
)
...
...
src/base/utils/Serialized.jl
View file @
0a220c9e
...
...
@@ -11,7 +11,7 @@ function serialize_model(
filename
::
String
,
)
::
Serialized
{
MM
}
where
{
MM
<:
MetabolicModel
}
open
(
f
->
serialize
(
f
,
model
),
filename
,
"w"
)
Serialized
{
MM
}(
nothing
,
filename
)
Serialized
{
MM
}(
filename
)
end
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment