Commit 3ff6bb4c authored by Cyrille Poncelet's avatar Cyrille Poncelet
Browse files

WIP on XSF

parent accc6eaa
This diff is collapsed.
......@@ -42,6 +42,7 @@ public class CodeGenerator {
}
public static void main( String[] args ) throws Exception
{
System.out.println("Starting");
// Parse file
try{
CommandLine commandLine = new DefaultParser().parse(createCommandLineOptions(), args);
......@@ -74,7 +75,7 @@ public class CodeGenerator {
new JavaSourceCodeGenerator().run(root, Paths.get(outputDir.getAbsolutePath(), "code").toFile());
new PythonSourceCodeGenerator().run(root, Paths.get(outputDir.getAbsolutePath(), "code").toFile());
}
System.out.println("Done");
}
/** Display help. */
public static void displayHelp() {
......
......@@ -29,7 +29,7 @@ public class SCAttributeAdapter {
return Arrays.asList(String.format("setDoubleFillValue(%s);",formatAttribute(attribute, variable.getType())));
case "short":
case "ushort":
return Arrays.asList(String.format("setShortDoubleValue((short)%s);",formatAttribute(attribute, variable.getType())));
return Arrays.asList(String.format("setShortFillValue(%s);",formatAttribute(attribute, variable.getType())));
case "byte":
return Arrays.asList(String.format("setByteFillValue((byte) %s);",formatAttribute(attribute, variable.getType())));
case "uint":
......
......@@ -391,6 +391,9 @@ public class SCGroupAdapter {
case "byte":
nptype="np.int8";
break;
case "short":
nptype="np.int16";
break;
case "float":
nptype="np.float32";
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment