Skip to content

Incorrect import in python_magnetrun/README.md (Loading Data section) #21

@ValentinLevchenko

Description

@ValentinLevchenko

Current description:

### Loading data
**Single Pupitre file (`.txt`):**
```python
from python_magnetrun.magnetdata import MagnetData
...
```

However, using this import leads to the following error:
ImportError: cannot import name 'MagnetData' from 'python_magnetrun.magnetdata'

Suggested fix:

### Loading data
**Single Pupitre file (`.txt`):**
```python
from python_magnetrun.magnetdata import load_magnetdata
...
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions