List Custom Float:
The 1hew_ListCustomFloat node is designed to process a block of text input and extract a list of floating-point numbers from it. This node is particularly useful for AI artists who need to convert textual data into numerical form for further processing or analysis. By parsing the input text, the node identifies and extracts numbers, handling various delimiters and formats, including those with commas, semicolons, and even different quotation marks. This functionality allows for flexible input handling, making it easier to work with data that may not be consistently formatted. The node's primary goal is to simplify the conversion of text-based numerical data into a structured list of floats, which can then be used in subsequent computational tasks or visualizations.
List Custom Float Input Parameters:
custom_text
The custom_text parameter is a multiline string input where you can provide the text containing numbers you wish to extract. This input serves as the source from which the node will parse and identify floating-point numbers. The text can include numbers separated by various delimiters such as commas, semicolons, or even new lines. The node is designed to handle different formats and will attempt to extract numbers even if they are enclosed in quotes. There are no strict minimum or maximum values for this input, but it defaults to an empty string if not provided. The flexibility in input format allows you to input data in a way that is most convenient for you, without needing to pre-process the text extensively.
List Custom Float Output Parameters:
float_list
The float_list output is a list of floating-point numbers extracted from the custom_text input. This output is crucial as it transforms the textual representation of numbers into a numerical format that can be used for further processing or analysis. The list will contain all the valid floats found in the input text, providing a structured and easily accessible format for numerical data.
count
The count output provides the total number of floating-point numbers extracted from the input text. This integer value is useful for understanding the extent of data extraction and can be used to verify that the expected number of numbers has been processed. It serves as a quick reference to gauge the amount of numerical data available for subsequent tasks.
List Custom Float Usage Tips:
- Ensure that your input text is formatted in a way that clearly separates numbers using common delimiters like commas or semicolons to improve the accuracy of number extraction.
- Use this node to quickly convert lists of numbers from text files or user input into a format that can be easily manipulated or visualized in your AI projects.
List Custom Float Common Errors and Solutions:
Invalid float conversion
- Explanation: This error occurs when the node encounters a string in the input text that cannot be converted to a float, such as non-numeric characters or improperly formatted numbers.
- Solution: Review the input text to ensure that all numbers are correctly formatted and separated by recognized delimiters. Remove any non-numeric characters that may interfere with the conversion process.
Empty input text
- Explanation: If the input text is empty or contains no recognizable numbers, the node will return a default list containing a single float value of 0.0.
- Solution: Provide a valid input text with numbers to ensure meaningful output. Check for any accidental deletions or formatting issues in the input text.
