Skip to content

Simple overloaded constructor for loading components #8

@tgoorden

Description

@tgoorden

An error that is easy to run into, is mistakingly adding components to the flowsheet later on in the code (e.g. after you've already processed some streams). This will inevitably result in hard to understand errors.

To avoid this, perhaps an easy 'fix' is to provide an overloaded constructor like this:

function Flowsheet(components::Vector{AbstractString})
    fs = Flowsheet()
    readcomponentlist!(fs, "./components", components)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions