Commit b71f4c47 authored by cponcele's avatar cponcele
Browse files

fix python code warning

parent efbba0a9
......@@ -400,10 +400,12 @@ public class SCGroupAdapter {
}
}
String vlenTypeDictDeclaration= "vlen_type_dict={}";
String vlenTypeDictDeclaration= "vlen_type_dict=None";
if(!vlenTypeDict.isEmpty())
{
vlenTypeDictDeclaration=String.format("\n%s%svlen_type_dict={\n%s}",localIdent," ", String.join(",\n",vlenTypeDict));
vlenTypeDictDeclaration=String.format("\n%s%s#pylint:disable = dangerous-default-value\n%s%svlen_type_dict={\n%s}",
localIdent," ",
localIdent," ", String.join(",\n",vlenTypeDict));
}
if(is_sensor_associated)
......@@ -417,6 +419,7 @@ public class SCGroupAdapter {
sourceCode.add(String.format("\n%sdef create_group(self, parent_group: nc.Dataset,%s,**attributes):", localIdent,vlenTypeDictDeclaration));
sourceCode.add(String.format("%s%sg = parent_group.createGroup(self.get_group_path())", localIdent, pythonIndent));
}
sourceCode.add(String.format("%s%sif vlen_type_dict is None:\n%s%s%svlen_type_dict = {}", localIdent, pythonIndent, localIdent, pythonIndent,pythonIndent));
//declare enum
if(!enumDeclaration.isEmpty())
......
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