Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CIF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VERIFY
  • CIF
  • Issues
  • #6

Closed
Open
Created Jul 13, 2020 by Jacob van Peet@vanpeetDeveloper

monitor file and Pandas UserWarning

Summary

Pandas UserWarning when opening the monitor file that is generated by following the steps in the online doc.

Steps to reproduce

Generate monitor file according to steps in the online docs (section 6.2.3. Generate a monitor file compatible with the CIF). Try to plot the result using the python code in step 2.
python version: Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 23:03:20)
pandas version: '1.0.3'

What is the current bug behavior?

Pandas issues a UserWarning (see below). However, a plot can still be generated by entering the rest of the code in step 2.

What is the expected correct behavior?

No Warnings or Errors when opening a monitor file.

Relevant logs and/or screenshots

import matplotlib.pyplot as plt
from pycif.utils.datastores import dump
datastore = dump.read_datastore('jvp_monitor.nc')
/home/jpt930/werk/verify/cif/src/pycif/utils/datastores/dump.py:185: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
  setattr(df, "nc_attributes", ds.attrs)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking