mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
bugfix SLF4J error message
This commit is contained in:
parent
37849a4f46
commit
3faff59cf7
@ -23,16 +23,12 @@
|
||||
<OpenedFile File="D:\MyProgram\java\MeteoInfoDev\toolbox\meteoview3d\mainGUI.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\io\radar\radar_bz2_3d_1.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_1.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_cma.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_cma_2.py"/>
|
||||
</OpenedFiles>
|
||||
<RecentFiles>
|
||||
<RecentFile File="D:\MyProgram\java\MeteoInfoDev\toolbox\meteoview3d\_reload.py"/>
|
||||
<RecentFile File="D:\MyProgram\java\MeteoInfoDev\toolbox\meteoview3d\mainGUI.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\io\radar\radar_bz2_3d_1.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_1.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_cma.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\map\webmap\webmap_cma_2.py"/>
|
||||
</RecentFiles>
|
||||
</File>
|
||||
<Font>
|
||||
@ -40,5 +36,5 @@
|
||||
</Font>
|
||||
<LookFeel DockWindowDecorated="true" LafDecorated="true" Name="FlatDarkLaf"/>
|
||||
<Figure DoubleBuffering="true"/>
|
||||
<Startup MainFormLocation="-7,0" MainFormSize="1359,785"/>
|
||||
<Startup MainFormLocation="-7,0" MainFormSize="1388,743"/>
|
||||
</MeteoInfo>
|
||||
|
||||
@ -29,15 +29,10 @@
|
||||
<artifactId>docking-frames-core</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>2.0.5</version>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
|
||||
Binary file not shown.
@ -2,16 +2,18 @@ from .numeric import *
|
||||
import numeric as np
|
||||
import numeric.random as random
|
||||
import numeric.linalg as linalg
|
||||
from .plotlib import *
|
||||
import plotlib as plt
|
||||
from .geolib.migeo import *
|
||||
import geolib.topology as topo
|
||||
from .dataset import *
|
||||
from .plotlib import *
|
||||
import plotlib as plt
|
||||
import meteolib as meteo
|
||||
import imagelib
|
||||
from dataframe import *
|
||||
import enum
|
||||
|
||||
print('MeteoInfoLab 3.6.3')
|
||||
|
||||
import os
|
||||
mi_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
migl.mifolder = mi_dir
|
||||
|
||||
@ -66,7 +66,7 @@ public class MeteoInfoLab {
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws IOException {
|
||||
// Disable illegal access warning message
|
||||
disableAccessWarnings();
|
||||
|
||||
@ -91,11 +91,12 @@ public class MeteoInfoLab {
|
||||
System.exit(0);
|
||||
} else {
|
||||
String fn = args[1];
|
||||
if (new File(fn).isFile()) {
|
||||
File file = new File(fn);
|
||||
if (file.isFile()) {
|
||||
System.setProperty("java.awt.headless", "true");
|
||||
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
|
||||
System.out.println("Headless mode: " + ge.isHeadless());
|
||||
runScript(args, fn, 1);
|
||||
runScript(args, file.getCanonicalPath(), 1);
|
||||
} else {
|
||||
System.out.println("The script file does not exist!");
|
||||
System.exit(0);
|
||||
@ -105,8 +106,9 @@ public class MeteoInfoLab {
|
||||
runApplication(true);
|
||||
} else {
|
||||
String fn = args[0];
|
||||
if (new File(fn).isFile()) {
|
||||
runScript(args, fn, 0);
|
||||
File file = new File(fn);
|
||||
if (file.isFile()) {
|
||||
runScript(args, file.getCanonicalPath(), 0);
|
||||
} else {
|
||||
System.out.println("The script file does not exist!");
|
||||
System.exit(0);
|
||||
@ -120,7 +122,7 @@ public class MeteoInfoLab {
|
||||
private static void runScript(String args[], String fn, int idx) {
|
||||
FontUtil.registerWeatherFont();
|
||||
|
||||
System.out.println("Running Jython script...");
|
||||
System.out.println("Running Jython script: " + fn);
|
||||
PySystemState state = new PySystemState();
|
||||
if (args.length > idx + 1) {
|
||||
for (int i = idx + 1; i < args.length; i++) {
|
||||
@ -189,6 +191,7 @@ public class MeteoInfoLab {
|
||||
interp.exec("mipylib.migl.mifolder = u'" + miPath + "'");
|
||||
System.out.println("mipylib is loaded...");
|
||||
interp.execfile(fn);
|
||||
System.out.println("End of run!");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user