Skip to content
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

Create relationship diagram pvcollada #4

Open
TotoGaz opened this issue Feb 21, 2025 · 1 comment
Open

Create relationship diagram pvcollada #4

TotoGaz opened this issue Feb 21, 2025 · 1 comment

Comments

@TotoGaz
Copy link

TotoGaz commented Feb 21, 2025

Hello,

Instead of perusing the xsd file, is there a relationship diagram that we could use to assess the format? (like https://mermaid.js.org/syntax/entityRelationshipDiagram.html)

From https://github.com/pvlib/pvcollada/blob/main/pvcollada20_schema/pvcollada_schema_0.1.xsd I could recreate (to some extent) this diagram, but it does not contain all the collections, nor the cardinalities, relations, etc. That would be helpful to understand the format

erDiagram

module {
    string manufacturer
    string name
    string type
    float nom_power
    float length
    float width
    float depth
    int num_cells
    int num_cells_length
    int num_cells_width
    int num_cells_series
    int num_strings
    string cell_type
    float bifacial_factor
    float t_coef_power
    float t_coef_isc
    float t_coef_voc
    float i_sc
    float i_mpp
    float v_oc
    float v_mpp
}

inverter {
    string manufacturer
    string name
    string type
    float nom_power_ac
    float nom_power_dc
    float capacity_ac
    float capacity_dc
    float v_mpp_min
    float v_mpp_max
    float v_mpp_nom
    float i_max_dc
    float mppt_count
    float mppt_input_count
    float v_out_ac
    float self_consumption
    float night_tare
    float temperature_derate
    float efficiency
    float efficiency_standard_value
    float efficiency_standard_type
    collada_sidref mesh_id
}

combiner {
    string manufacturer
    string name
    int input_count
}

transformer {
    string manufacturer
    string name
    float nom_power
    float v_in
    float v_out
    float efficiency
    float iron_loss
    float copper_loss
    collada_sidref mesh_id
}

software {
    string source
    string target
}


project {
    string name
    string drawing
    string company
    string country
    float latitude
    float longitude
    string timezone
    string timezone_offset
    collada_float3 transformation_vector
    string coordinate_system
    collada_sidref boundary
    int module_count
    int string_count
    float dc_capacity
    float ac_capacity
    float interconnection_limit
}
Loading
@cwhanse
Copy link
Member

cwhanse commented Feb 21, 2025

I would very much like to automatically generate diagrams such as you propose. They can be hosted on github pages, if generated by a python script or similar code. Is there a way to add the Documentation to those tables?

I don't want to maintain such diagrams manually while the xsd is going to change rapidly as we build it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants