-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DYN-5297 Import Excel Small Numbers (#13680)
* read scientific notation * remove unecessary reference * Fix for situation with formulas and add unit tests for scientific notation
- Loading branch information
1 parent
fc30a2d
commit b4f2f67
Showing
4 changed files
with
238 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
{ | ||
"Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", | ||
"IsCustomNode": false, | ||
"Description": "", | ||
"Name": "scientificNotation_OpenXml", | ||
"ElementResolver": { | ||
"ResolutionMap": {} | ||
}, | ||
"Inputs": [], | ||
"Outputs": [], | ||
"Nodes": [ | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", | ||
"NodeType": "CodeBlockNode", | ||
"Code": "\"Sheet1\";", | ||
"Id": "21a38b9d21544217bd909348ef6bc4ec", | ||
"Inputs": [], | ||
"Outputs": [ | ||
{ | ||
"Id": "74b57c13c01d482eab46dedc5d14100d", | ||
"Name": "", | ||
"Description": "Value of expression at line 1", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Disabled", | ||
"Description": "Allows for DesignScript code to be authored directly" | ||
}, | ||
{ | ||
"ConcreteType": "CoreNodeModels.Input.Filename, CoreNodeModels", | ||
"HintPath": "C:\\Users\\filipe.otero\\Documents\\Code\\filipeotero\\Dynamo\\test\\core\\excel\\ScientificNotation.xlsx", | ||
"InputValue": ".\\ScientificNotation.xlsx", | ||
"NodeType": "ExtensionNode", | ||
"Id": "979b38590a7e4cc18e0fb8c2faaaf9c7", | ||
"Inputs": [], | ||
"Outputs": [ | ||
{ | ||
"Id": "a4e947353bff42289ea6dc737dfda2ed", | ||
"Name": "", | ||
"Description": "File Path", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Disabled", | ||
"Description": "Allows you to select a file on the system and returns its file path" | ||
}, | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", | ||
"NodeType": "FunctionNode", | ||
"FunctionSignature": "DSOffice.Data.OpenXMLImportExcel@string,string,int,int,bool", | ||
"Id": "f5e38490fa1c4411b87346ddd9571627", | ||
"Inputs": [ | ||
{ | ||
"Id": "0b1415ac08294ab0b58cc6e1837a4897", | ||
"Name": "filePath", | ||
"Description": "File representing the Excel workbook\n\nstring", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "b4d4f94084ff4ddf858ee58c6adaceae", | ||
"Name": "sheetName", | ||
"Description": "Name of the worksheet containing data\n\nstring", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "ae3e30579803435f84a62be8d80970c5", | ||
"Name": "startRow", | ||
"Description": "Start row for reading data. Enter 0 for Row 1, 1 for Row 2, etc.\n\nint\nDefault value : 0", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "e6fcfa9f4f344e3682ec94516d6e7a17", | ||
"Name": "startColumn", | ||
"Description": "Start column for reading data. Enter 0 for Column A, 1 for Column B, etc.\n\nint\nDefault value : 0", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "c27076c32b624d13ae8e65ffd8cec215", | ||
"Name": "readAsString", | ||
"Description": "Toggle to read cells as strings\n\nbool\nDefault value : false", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Outputs": [ | ||
{ | ||
"Id": "66f7dc30ca2647eb8f7890efba03c09e", | ||
"Name": "data", | ||
"Description": "Rows of data from the Excel worksheet", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Auto", | ||
"Description": "Read data from a Microsoft Excel spreadsheet by using the Open XML standard. Data is read by row and returned in a series of lists by row. Rows and columns are zero-indexed; for example, the value in cell A1 will appear in the data list at [0,0].\n\nData.OpenXMLImportExcel (filePath: string, sheetName: string, startRow: int = 0, startColumn: int = 0, readAsString: bool = false): var[][]" | ||
} | ||
], | ||
"Connectors": [ | ||
{ | ||
"Start": "74b57c13c01d482eab46dedc5d14100d", | ||
"End": "b4d4f94084ff4ddf858ee58c6adaceae", | ||
"Id": "4e4db9b2285f4bd5a31050e439b79d2b", | ||
"IsHidden": "False" | ||
}, | ||
{ | ||
"Start": "a4e947353bff42289ea6dc737dfda2ed", | ||
"End": "0b1415ac08294ab0b58cc6e1837a4897", | ||
"Id": "2338f58a02464feead68ee51e52485b8", | ||
"IsHidden": "False" | ||
} | ||
], | ||
"Dependencies": [], | ||
"NodeLibraryDependencies": [ | ||
{ | ||
"Name": "ScientificNotation.xlsx", | ||
"ReferenceType": "External", | ||
"Nodes": [ | ||
"979b38590a7e4cc18e0fb8c2faaaf9c7" | ||
] | ||
} | ||
], | ||
"Thumbnail": "", | ||
"GraphDocumentationURL": null, | ||
"ExtensionWorkspaceData": [ | ||
{ | ||
"ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", | ||
"Name": "Properties", | ||
"Version": "2.18", | ||
"Data": {} | ||
} | ||
], | ||
"Author": "None provided", | ||
"Linting": { | ||
"activeLinter": "None", | ||
"activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", | ||
"warningCount": 0, | ||
"errorCount": 0 | ||
}, | ||
"Bindings": [], | ||
"View": { | ||
"Dynamo": { | ||
"ScaleFactor": 1.0, | ||
"HasRunWithoutCrash": true, | ||
"IsVisibleInDynamoLibrary": true, | ||
"Version": "2.18.0.2986", | ||
"RunType": "Manual", | ||
"RunPeriod": "1000" | ||
}, | ||
"Camera": { | ||
"Name": "_Background Preview", | ||
"EyeX": -17.0, | ||
"EyeY": 24.0, | ||
"EyeZ": 50.0, | ||
"LookX": 12.0, | ||
"LookY": -13.0, | ||
"LookZ": -58.0, | ||
"UpX": 0.0, | ||
"UpY": 1.0, | ||
"UpZ": 0.0 | ||
}, | ||
"ConnectorPins": [], | ||
"NodeViews": [ | ||
{ | ||
"Name": "Code Block", | ||
"ShowGeometry": true, | ||
"Id": "21a38b9d21544217bd909348ef6bc4ec", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 25.0, | ||
"Y": 258.0 | ||
}, | ||
{ | ||
"Name": "File Path", | ||
"ShowGeometry": true, | ||
"Id": "979b38590a7e4cc18e0fb8c2faaaf9c7", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 67.0, | ||
"Y": 27.999999999999957 | ||
}, | ||
{ | ||
"Name": "Data.OpenXMLImportExcel", | ||
"ShowGeometry": true, | ||
"Id": "f5e38490fa1c4411b87346ddd9571627", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 412.2000000000001, | ||
"Y": 51.600000000000065 | ||
} | ||
], | ||
"Annotations": [], | ||
"X": 0.0, | ||
"Y": 0.0, | ||
"Zoom": 1.0 | ||
} | ||
} |