-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-5297 Import Excel Small Numbers #13680
Merged
QilongTang
merged 3 commits into
DynamoDS:master
from
filipeotero:DYN-5297-ImportExcel-SmallNumbers
Jan 17, 2023
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we tested change in behavior when digit separator is changed (from OS settings)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible use case: customer distributes a spreadsheet with per-cell number formatting to at least 2 different users in 2 different locations with different OS settings relating to number formatting (digit separator). Did the previous function work for both OS settings and does the new one not work the same?