Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ReferenceModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
Python
ReferenceModel
Commits
43b1dbf6
Commit
43b1dbf6
authored
2 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Documenting discovery and abstraction
parent
fa326a98
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-1
21 additions, 1 deletion
README.md
with
21 additions
and
1 deletion
README.md
+
21
−
1
View file @
43b1dbf6
# ReferenceModel
\ No newline at end of file
# ReferenceModel
## How to find and instantiate this model
TODO: Must find a way of dynamically importing models
```
python
>>>
from
reference_model
import
reference_model
>>>
from
vipscore_common.vips_model
import
VIPSModel
>>>
print
(
VIPSModel
.
__subclasses__
())
[
<
class
'
reference_model
.
reference_model
.
ReferenceModel
'
>]
>>>
print
(
VIPSModel
.
__subclasses__
()[
0
])
<
class
'
reference_model
.
reference_model
.
ReferenceModel
'
>
>>>
t
=
VIPSModel
.
__subclasses__
()[
0
]()
>>>
t
<
reference_model
.
reference_model
.
ReferenceModel
object
at
0x7f8fab6dee30
>
>>>
t
.
get_model_name
()
'
Reference Model
'
>>>
t
.
get_model_description
()
"
\n
The model is a reference model for developers, showcasing best practices and functionalities of a model.
\n
It
'
s a simple day degree model for an imagined pest, and when thresholds are passed, the warning status progresses.
\n
"
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment