| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
Reviewed-by: Lars Wirzenius
Reviewed-by: Richard Maw
|
| | |
|
|\ \
| |/
|/|
| | |
Changed the error (exception) to list all obsolete fields.
|
| |
| |
| |
| | |
ObsoleteFieldError
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original contents of the morphology is not generally trackable,
comments are lost for example, and it's simpler to output a canonical
format than attempt to preserve everything of the original.
However, we don't want to clutter the output with fields that have
been filled out to be the defaults, so provide a method to remove
fields that are the same as their default.
This also removes a check in set_defaults that it is a valid kind,
since it explicitly declares it assumes the morphology is valid.
|
|
|
|
|
|
|
| |
Although clusters morphologies are still loaded using
the old code, `checkout` in the new branch-and-merge
plugin tries to load and validate the morphology using
morphloader.
|
| |
|
|
|
|
| |
Suggested by Richard Maw
|
|
|
|
| |
Suggested by Richard Maw
|
|
|
|
|
|
|
| |
The old code, which MorphologyLoader will replace, allows build-mode
test as well as bootstrap, so the new code needs to do that too.
Suggested by Richard Maw.
|
|
|
|
|
|
|
|
| |
We don't have a real name for the dict that tells us what chunk
(or stratum) to use in a stratum (or system). The code was sometimes
using spec, and sometimes info. It now uses spec always.
Suggested by Richard Maw
|
|
|
|
|
|
|
| |
The new name is more descriptive, since it turns out that the
method doesn't just parse strings, but also open file handles.
Suggested by Richard Maw.
|
|
|
|
|
|
|
| |
It turns out the yaml module can handle strings directly, and does
not need explicit file handles.
Suggested by Richard Maw.
|
|
The old code is somewhat weird. The new code is meant to be cleaner and more
straightforward to understand and to use. For example, the old code has setting
of defaults in both the Morphology and MorphologyFactory classes. The new code
has a minimally simple Morphology class, and has all the logic to validate and
set defaults in the MorphologyLoader class. Further, the new code makes it
possible to load an invalid morphology, which will be useful later.
|