public ArchiveorigParam(BaseManager manager, AxisID axisID) { this.manager = manager; if (axisID == AxisID.FIRST) { mode = Mode.AXIS_A; } else if (axisID == AxisID.SECOND) { mode = Mode.AXIS_B; } File stack = Utilities.getFile(manager, false, axisID, DatasetTool.STANDARD_DATASET_EXT, ""); commandArray = new String[] { "python", "-u", BaseManager.getIMODBinPath() + COMMAND_NAME, "-PID", stack.getName() }; outputFile = Utilities.getFile(manager, false, axisID, "_xray.st.gz", ""); }
public void testBeadtrack() throws FileNotFoundException, IOException, LogFile.LockException { // TEMP if (Utilities.isWindowsOS()) { return; } ReadOnlyAutodoc autodoc = AutodocFactory.getInstance(manager, AutodocFactory.BEADTRACK, AxisID.ONLY, false); assertFalse(autodoc.isError()); }
public void testCpu() throws LogFile.LockException, IOException, SystemProcessException, InvalidParameterException { if (Utilities.isWindowsOS()) { return; } ReadOnlyAutodoc autodoc = AutodocFactory.getInstance( manager, TestUtilites.INSTANCE.copyTestFile( AutodocTests.TEST_ROOT_DIR.getAbsolutePath(), TEST_DIR_NAME, "cpu.adoc"), false); assertFalse(autodoc.isError()); }
public void logMessage(Loggable loggable, AxisID axisID) { if (loggable == null) { return; } try { SwingUtilities.invokeLater( new AppendLater( Utilities.getDateTimeStamp(), loggable.getName(), loggable.getLogMessage(), axisID)); } catch (LogFile.LockException e) { e.printStackTrace(); SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage())); } catch (IOException e) { e.printStackTrace(); SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage())); } }
public void testSimple() throws LogFile.LockException, IOException, SystemProcessException, InvalidParameterException { if (Utilities.isWindowsOS()) { return; } ReadOnlyAutodoc autodoc = AutodocFactory.getInstance( manager, TestUtilites.INSTANCE.copyTestFile( AutodocTests.TEST_ROOT_DIR.getAbsolutePath(), TEST_DIR_NAME, "simple.adoc"), false); // only use with getTestInstance // autodoc.runInternalTest(AutodocFactory.InternalTestType.PARSER,false,false); // only use with getInstance // autodoc.printStoredData(); assertFalse(autodoc.isError()); }
public void logMessage(final String message, final boolean timestamp, final boolean newline) { SwingUtilities.invokeLater( new AppendLater((timestamp ? Utilities.getDateTimeStamp() : null), message, newline)); }
public void logMessage(final String message) { SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), message)); }
public void logMessage(final String title, final AxisID axisID) { SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), title, axisID)); }
public void logMessage(final AxisID axisID, final ArrayList<String> message) { SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), message, axisID)); }
public void logMessage(String title, AxisID axisID, String[] message) { SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), title, message)); }
public void logMessage(String line1, String line2) { SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), line1, line2)); }