Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/mianalysis/mia into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcross committed Nov 7, 2023
2 parents 3d0ed78 + a2944ad commit d280a16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ public void setValue(String value) throws NumberFormatException {
this.value = value;
} catch (NumberFormatException e) {
MIA.log.writeWarning("Module \"" + module.getName() + "\", parameter \"" + getName()
+ " \". Must either:" + "\n - Be a double-precision number"
+ "\n - Be a global variable handle (e.g. V{name}) "
+ "\n - Contain a calculation (e.g. C{3-6}. "
+ "\nNote: Global variables and calculations can be combined (e.g. C{V{name1} + V{name2} - 4})");
+ " \". Must either:"
+ "\n - A double-precision value,"
+ "\n - A global variable handle in the form V{[VARIABLE NAME]} (e.g. V{name}),"
+ "\n - Contain a calculation in the form CD{[EQUATION]} for double-precision outputs or CI{[EQUATION]} for integer-precision outputs (e.g. CD{3/4}),"
+ "\n - Contain an image measurement in the form Im{[IMAGE NAME|MEASUREMENT NAME]} (e.g. Im{RedChannel|DIMENSIONS // WIDTH}),"
+ "\n - Contain an object collection measurement statistic in the form Os{[OBJECTS NAME|MEASUREMENT NAME|STATISTIC]} (e.g. Os{Nuclei|SHAPE // N_VOXELS|MEAN}),"
+ "\n - Contain an object count in the form Oc{[OBJECTS NAME]} (e.g. Os{Nuclei}),"
+ "\nNote: Global variables, dynamic values and calculations can be combined (e.g. CD{V{name1} + Oc{name2} - 4})");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ public void setValue(String value) {
this.value = value;
} catch (NumberFormatException e) {
MIA.log.writeWarning("Module \"" + module.getName() + "\", parameter \"" + getName()
+ " \". Must either:" + "\n - Be an integer number"
+ "\n - Be a global variable handle (e.g. V{name}) "
+ "\n - Contain a calculation (e.g. C{3-6}."
+ "\nNote: Global variables and calculations can be combined (e.g. C{V{name1} + V{name2} - 4})");
+ " \". Must either:"
+ "\n - An integer-precision value,"
+ "\n - A global variable handle in the form V{[VARIABLE NAME]} (e.g. V{name}),"
+ "\n - Contain a calculation in the form CI{[EQUATION]} (e.g. CI{3-4}),"
+ "\nNote: Global variables and calculations can be combined (e.g. CI{V{name1} + V{name2} - 4})");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion mia-gui-swing/src/main/resources/plugins.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Plugins>ModularImageAnalysis (MIA), "MIA",io.github.mianalysis.MIA.MIA
Plugins>ModularImageAnalysis (MIA), "MIA",io.github.mianalysis.mia.MIAGUI
2 changes: 1 addition & 1 deletion mia-headless/src/main/resources/plugins.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Plugins>ModularImageAnalysis (MIA), "MIA (headless)",io.github.mianalysis.MIA.MIAHeadless
Plugins>ModularImageAnalysis (MIA), "MIA (headless)",io.github.mianalysis.mia.MIAHeadless
4 changes: 2 additions & 2 deletions mia-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@

<build>
<plugins>
<!-- <plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
Expand All @@ -177,7 +177,7 @@
</manifest>
</archive>
</configuration>
</plugin> -->
</plugin>

<!-- To be uncommented when creating release -->
<!-- <plugin>
Expand Down

0 comments on commit d280a16

Please sign in to comment.