Rename run method to runBuilder in InteractiveConsole and update references; refactor file handling in Plot and SimulationBuilder for improved clarity and consistency

This commit is contained in:
2025-03-16 16:59:12 +01:00
parent 60ef40c0ab
commit f4d3262cb7
6 changed files with 5 additions and 34 deletions

View File

@@ -37,10 +37,8 @@ public class SimulationBuilder {
*/
public SimulationBuilder(String netFile) throws IOException {
try {
var file = Parameters.getFileOrExample(netFile);
this.net = Net.load(file);
this.net = Net.load(netFile);
this.confidences = new ConfidenceIndices(this.net);
file.close();
} catch (FileNotFoundException e) {
throw new IllegalArgumentException("Net file needed!");
} catch (KryoException e) {