Skip to content

Readers and writers for sample of configurations #123

@jmhorcas

Description

@jmhorcas

Is your feature request related to a problem? Please describe.
Need of reading and writing sample (lists) of configurations in a file.

Describe the solution you'd like
I provide two different readers and two different writers available here:

  1. Configurations CSV Writer: This writes a list of configurations to a CSV file in the following format:
Element1, Element2, Element3,..., ElementN
True, True, False,..., True
True, False, False,..., False
True, True, True,..., True
...
  1. Configurations CSV Reader: This reads a list of configurations from a CSV file in the previous format.

  2. Configurations List Writer: This writes a list of configurations to a txt file in the folllowing format:

['Element1', 'Element2',..., 'ElementX']
['Element1', 'Element2',..., 'ElementY']
['Element1', 'Element2',..., 'ElementZ']
...

where each list represents the selected elements in a configuration.
4. Configurations List Reader: This reads a list of configurations in a txt file in the previous format.

Describe alternatives you've considered

  • All the transformations are developed with no dependencies with other plugins, so they can be incorporated to flamapy_fw safely, if desired.
  • The CSV reader provides a configuration parameter to store only the selected elements.
  • The four transformations have been tested.

Additional context

  • These solutions are the advantages that can include in the same file information about each configuration such as "attributes configurations" (e.g., Price of the configuration, Performance of the configuration,...).
    In the case of the CSV solution, each attribute can be easily added as a new column. In the text file, attributes can also be incorporated as column (in a CSV like format), or as lists.

I just have also available a readers/writers for attributes in configurations. Let me know if you are interested in these other attributes readers/writers. See ConfigurationsAttributesReader

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions