Skip to content

Commit

Permalink
emove FileFormats from repository and some minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gb119 committed Jan 3, 2024
1 parent 5410b1e commit 9d208a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 72 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. image:: https://github.com/stonerlab/Stoner-PythonCode/actions/workflows/run-tests-action.yaml/badge.svg?branch=master
:target: https://github.com/stonerlab/Stoner-PythonCode/actions/workflows/run-tests-action.yaml

.. image:: https://coveralls.io/repos/github/stonerlab/Stoner-PythonCode/badge.svg?branch=master
:target: https://coveralls.io/github/stonerlab/Stoner-PythonCode?branch=master
.. image:: https://app.codacy.com/project/badge/Coverage/a9069a1567114a22b25d63fd4c50b228
:target: https://app.codacy.com/gh/stonerlab/Stoner-PythonCode/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage

.. image:: https://app.codacy.com/project/badge/Grade/a9069a1567114a22b25d63fd4c50b228
:target: https://app.codacy.com/gh/stonerlab/Stoner-PythonCode/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
Expand Down
63 changes: 0 additions & 63 deletions Stoner/FileFormats.py

This file was deleted.

5 changes: 2 additions & 3 deletions doc/UserGuide/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,8 @@ modelling codes, such OOMMF or MuMax. When modelling a 3D system, it is often us
be able to examine a cross-section of the simulation. The Stoner package provides tools
to quickly examine the output data::

from Stoner.FileFormats import OVFFile # reads OOMMF vector field files
import Stoner.plot
p=SP.PlotFile('my_simulation.ovf')
from Stoner import Data
p=Data('my_simulation.ovf')
p.setas="xyzuvw"
p=p.section(z=10.5) # Take a slice in the xy plane where z is 10.5 nm
p.plot() # A 3D plot with cones
Expand Down
3 changes: 1 addition & 2 deletions doc/UserGuide/datafolder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ then a new instance *f* is created. The optional *pattern* keyword is used to on
the files with a .dat extension. In this example, it is assumed that the files are readable by
the :py:class:`Stoner.Core.Data` general class, if they are in some other format then the 'type' keyword can be used::

from Stoner.FileFormats import XRDFile
f=DataFolder(type=XRDFile,pattern='*.dql')
f=DataFolder(type="XRDFile",pattern='*.dql')

Strictly, the class pointed to be a the *type* keyword should be a sub class of :py:class:`Stoner.Core.metadataObject`
and should have a constructor that undersatands the initial string parameter to be a filename to load the object from. The class
Expand Down
4 changes: 2 additions & 2 deletions doc/readme.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. image:: https://github.com/stonerlab/Stoner-PythonCode/actions/workflows/run-tests-action.yaml/badge.svg?branch=master
:target: https://github.com/stonerlab/Stoner-PythonCode/actions/workflows/run-tests-action.yaml

.. image:: https://coveralls.io/repos/github/stonerlab/Stoner-PythonCode/badge.svg?branch=master
:target: https://coveralls.io/github/stonerlab/Stoner-PythonCode?branch=master
.. image:: https://app.codacy.com/project/badge/Coverage/a9069a1567114a22b25d63fd4c50b228
:target: https://app.codacy.com/gh/stonerlab/Stoner-PythonCode/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage

.. image:: https://app.codacy.com/project/badge/Grade/a9069a1567114a22b25d63fd4c50b228
:target: https://app.codacy.com/gh/stonerlab/Stoner-PythonCode/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
Expand Down

0 comments on commit 9d208a3

Please sign in to comment.