Skip to content

Commit

Permalink
Fix warning about version in filename
Browse files Browse the repository at this point in the history
So far, versions where always in the x.y.z format. Now I'm also using
x.y.zWIP, and this wasn't expected by the persistence code.
  • Loading branch information
nusco committed Aug 9, 2015
1 parent cc31111 commit dd8900a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ For now, I'm using a quick Java utility to process the backlog. Here are some co
* Identify interesting germline for demo
* Keyframes in DNA Browser

+ Start DNA browser in random mode in the middle of movement
+ Fix position of creatures relative to speckled area
+ Start DNA browser in random mode in the middle of movement


##Database Persistence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static String readExperimentData(String fileName) {

private static void checkVersion(String fileName) {
String fileNameWithoutExtension = stripExtension(fileName);
if (!fileNameWithoutExtension.matches("\\d+\\-\\d+\\.\\d+.\\d+")) {
if (!fileNameWithoutExtension.matches("\\d+\\-\\d+\\.\\d+.\\d+\\w*")) {
System.err.println("WARNING: This experiment doesn't contain a version in the filename. "
+ "I cannot check that it was generated by the same version of Narjillos that you're using now.");
return;
Expand Down

0 comments on commit dd8900a

Please sign in to comment.