Skip to content

loads_to_dataframe().columns differs from class_to_dataframe("Load").columns #119

Closed as not planned
@nlaws-camus

Description

@nlaws-camus

Perhaps related to #74

Versions

  • Python version: 3.10.8
  • Python architecture: x64
  • Operating system and version: OSX 12.2.1
  • OpenDSSDirect.py version number: 0.7.0

Bug

  • What is the current behavior?
>>> dss.utils.loads_to_dataframe().columns
Index(['CVRCurve', 'CVRvars', 'CVRwatts', 'CFactor', 'Class', 'Growth',
       'IsDelta', 'Model', 'Name', 'NumCust', 'PF', 'PctMean', 'PctStdDev',
       'RelWeighting', 'Rneut', 'Spectrum', 'Status', 'Vmaxpu', 'VminEmerg',
       'VminNorm', 'Vminpu', 'Xneut', 'Yearly', 'ZipV', 'Daily', 'Duty', 'Idx',
       'kV', 'kW', 'kVABase', 'kvar', 'kWh', 'kWhDays', 'puSeriesRL', 'XfkVA',
       'Phases', 'AllocationFactor'],
      dtype='object')

>>> dss.utils.class_to_dataframe("Load").columns
Index(['phases', 'bus1', 'kV', 'kW', 'pf', 'model', 'yearly', 'daily', 'duty',
       'growth', 'conn', 'kvar', 'Rneut', 'Xneut', 'status', 'class', 'Vminpu',
       'Vmaxpu', 'Vminnorm', 'Vminemerg', 'xfkVA', 'allocationfactor', 'kVA',
       '%mean', '%stddev', 'CVRwatts', 'CVRvars', 'kwh', 'kwhdays', 'Cfactor',
       'CVRcurve', 'NumCust', 'ZIPV', '%SeriesRL', 'RelWeight', 'Vlowpu',
       'puXharm', 'XRharm', 'spectrum', 'basefreq', 'enabled', 'like'],
      dtype='object')

>>> set([s.lower() for s in dss.utils.class_to_dataframe("Load").columns]) - set([s.lower() for s in dss.utils.loads_to_dataframe().columns])
{'relweight', 'vlowpu', '%mean', 'like', 'enabled', 'basefreq', '%seriesrl', 'bus1', 'puxharm', '%stddev', 'xrharm', 'kva', 'conn'}

>>> set([s.lower() for s in dss.utils.loads_to_dataframe().columns]) - set([s.lower() for s in dss.utils.class_to_dataframe("Load").columns])
{'name', 'puseriesrl', 'pctmean', 'pctstddev', 'isdelta', 'kvabase', 'relweighting', 'idx'}
  • What is the expected behavior? What is the motivation / use case for changing the behavior?
    Both methods should return the same dataframe (esp. note that loads_to_dataframe does not have a bus1 column).

  • What are the steps to reproduce this bug? Please provide a minimal working example of the bug if possible.
    See above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions