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

Rename pytools to analysator #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/components/mayavi/mayavi_usage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
\section{Plotting the grid}

\begin{python}
import pytools as pt
import analysator as pt
f = pt.vlsvfile.VlsvReader('bulk.0000872.vlsv')
grid = pt.grid.MayaviGrid(f, 'rho')
\end{python}
Expand Down
2 changes: 1 addition & 1 deletion Documentation/examples/example1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import pytools as pt
import analysator as pt

f = pt.vlsvfile.VlasiatorReader('fullf.0000002.vlsv')
grid = pt.grid.Particlepusherinterface(f, 'rho')
Expand Down
4 changes: 2 additions & 2 deletions Documentation/installation/installation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ \section{Testing installation}
\begin{verbatim}
cd ~/analysator
ipython
import pytools as pt
import analysator as pt
\end{verbatim}

The full input/output should look like this (if the installation fails, the import command should
Expand All @@ -63,7 +63,7 @@ \section{Testing installation}
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import pytools as pt
In [1]: import analysator as pt

In [2]:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/particle_pusher/particlepusher.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ \section{Using the particle pusher interface}
\begin{verbatim}
ipython

In [2]: import pytools as pt
In [2]: import analysator as pt

In [3]: f = pt.vlsvfile.VlasiatorReader('bulk.0001480.vlsv')

Expand Down
16 changes: 8 additions & 8 deletions Documentation/presentations/analysator.tex
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ \section{Introduction}
\begin{python}[basicstyle=\tiny]
# We are interested in reading data from the cell whose ID is 75

import pytools as pt # Import Analysator
import analysator as pt # Import Analysator

# Open a vlsv file for reading
vlsvReader = pt.vlsvfile.VlsvReader('bulk.0003710.vlsv')
Expand Down Expand Up @@ -163,7 +163,7 @@ \section{Concepts}

\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

vlsvReader = pt.vlsvfile.VlsvReader('test.vlsv') #What?

Expand All @@ -189,7 +189,7 @@ \section{Concepts}
\frametitle{Navigation (the \emph{most} important part)}
\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

pt.
\end{python}
Expand All @@ -205,7 +205,7 @@ \section{Concepts}
\frametitle{Navigation (the \emph{most} important part)}
\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

pt.calculations.
\end{python}
Expand All @@ -227,7 +227,7 @@ \section{Concepts}
\frametitle{Navigation (the \emph{most} important part)}
\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

pt.calculations.cut_through?
\end{python}
Expand Down Expand Up @@ -287,7 +287,7 @@ \section{Basics}
\frametitle{Basic usage}
\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

# Open a vlsv file
vlsvReader = pt.vlsvfile.VlsvReader('test.vlsv')
Expand Down Expand Up @@ -384,7 +384,7 @@ \section{Plotting}
Plotting can be done simply by feeding a vlsv file to the grid class as follows:
\begin{python}[basicstyle=\tiny]
# Import Analysator
import pytools as pt
import analysator as pt

# Open a vlsv file
vlsvReader = pt.vlsvfile.VlsvReader('test.vlsv')
Expand Down Expand Up @@ -532,7 +532,7 @@ \section{Hands-on}
\frametitle{Example from \emph{calculations}}
\begin{python}[basicstyle=\tiny]
# Import analysator
import pytools as pt
import analysator as pt

# Open a vlsv file
vlsvReader = pt.vlsvfile.vlsvReader('testfile.vlsv')
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "export PYTHONPATH=$PYTHONPATH:$HOME/analysator" >> $HOME/.bashrc
#################################################
module load mayavi2 # Load mayavi2 dependencies, if necessary (e.g. CSC system)
ipython # Start ipython
import pytools as pt # Import Analysator
import analysator as pt # Import Analysator


# Navigating functions:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/generate_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# passed to a job submission system for generating a multitude of frames
# via e.g. array jobs.

import pytools as pt
import analysator as pt
import sys, os, socket
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion examples/multi_panel_plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import colormaps as cmaps
Expand Down
2 changes: 1 addition & 1 deletion miscellaneous/miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

.. code-block:: python

import pytools as pt
import analysator as pt
pt.miscellaneous.
#press tab -> get the functions

Expand Down
2 changes: 1 addition & 1 deletion miscellaneous/slams.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import numpy as np
import pytools as pt
import analysator as pt
import os
import copy
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion miscellaneous/vtkwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def write_vtk_file( filename, point_data ):
.. code-block:: python

# Example usage:
import pytools as pt
import analysator as pt
filename = "test.vtk"
point_data = [[0.,0.,0.], [1.,1.,1.], [2.,2.,2.], [3.,3.,3.], [4.,4.,4.]]
pt.miscellaneous.write_vtk_file( filename=filename, point_data=point_data )
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
''' This is a module that includes most, if not all, calculations within the analysator. Please type "." and press tab to see which functions this module includes.

Example:
import pytools as pt
import analysator as pt

pt.calculations.
#press tab
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/cut3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def cut3d( vlsvReader, xmin, xmax, ymin, ymax, zmin, zmax, variable, operator="p
.. code-block:: python

Example:
import pytools as pt
import analysator as pt
f = pt.vlsvfile.VlsvReader('example.vlsv')
three_cut = pt.calculations.cut3d( vlsvReader=f, xmin=1e6, xmax=4e6, ymin=1e6, xmax=4e6, zmin=0, zmax=0, variable="rho" )
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/fieldtracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import numpy as np
import scipy as sp
import pytools as pt
import analysator as pt
from scipy import interpolate

def dynamic_field_tracer( vlsvReader_list, x0, max_iterations, dx):
Expand Down
4 changes: 2 additions & 2 deletions pyCalculations/intpol_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import pytools as pt
import analysator as pt
import numpy as np

def vlsv_intpol_file(file_vlsv,file_orbit,varlist,file_output):
Expand All @@ -33,7 +33,7 @@ def vlsv_intpol_file(file_vlsv,file_orbit,varlist,file_output):
:returns: none
.. code-block:: python
# Example:
import pytools as pt
import analysator as pt
pt.calculations.vlsv_intpol_file("state00040000.vlsv","orbit.dat",["cellB","n_H+sw_ave"],"output.dat")
'''
f=pt.vlsvfile.VlsvReader(file_name=file_vlsv)
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/intpol_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def vlsv_intpol_points(vlsvReader,points,varlist,operator="pass",interpolation_o
:returns: A tuple with output: (coordinates,variable_values,header_string)
.. code-block:: python
# Example:
import pytools as pt
import analysator as pt
import numpy as np
f=pt.vlsvfile.VlsvReader(file_name="state00040000.vlsv")
mesh_limits = f.get_spatial_mesh_extent()
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/lineout.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def lineout( vlsvReader, point1, point2, variable, operator="pass",interpolation
.. code-block:: python

# Example:
import pytools as pt # import analysator
import analysator as pt # import analysator

vlsvReader = pt.vlsvfile.VlsvReader(\"testfile.vlsv\") # Open a vlsv file
lineout_rho = pt.calculations.lineout( vlsvReader=vlsvReader, point1=[1.0e5, 1.0e6, 0], point2=[2.0e5, 2.0e6, 0], variable="rho", interpolation_order=1, points=100 )
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/timeevolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def cell_time_evolution( vlsvReader_list, variables, cellids, units="" ):

.. code-block:: python

import pytools as pt; import pylab as pl
import analysator as pt; import pylab as pl
# Example of usage:
time_data = pt.calculations.cell_time_evolution( vlsvReader_list=[VlsvReader("bulk.000.vlsv"), VlsvReader("bulk.001.vlsv"), VlsvReader("bulk.002.vlsv")], variables=["rho", "Pressure", "B"], cellids=[2,4], units=["N", "Pascal", "T"] )

Expand Down
2 changes: 1 addition & 1 deletion pyMayaVi/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.. code-block:: python

# Example:
import pytools as pt
import analysator as pt
pt.grid.
#press [tab] -> get the functions

Expand Down
2 changes: 1 addition & 1 deletion pyMayaVi/velocityspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def generate_custom_velocity_grid( vlsvReader, blocks_and_values, iso_surface=Fa

# Example usage:

import pytools as pt
import analysator as pt

#vlsvReader = pt.vlsvfile.VlsvReader("example.vlsv")

Expand Down
2 changes: 1 addition & 1 deletion pyPlots/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.. code-block:: python

# Example:
import pytools as pt
import analysator as pt
pt.pt.
#press [tab] -> get the functions

Expand Down
4 changes: 2 additions & 2 deletions pyPlots/plot_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import scipy
Expand Down Expand Up @@ -139,7 +139,7 @@ def plot_colormap(filename=None,
:kword nooverwrite: Set to only perform actions if the target output file does not yet exist

:kword var: variable to plot, e.g. rho, RhoBackstream, beta, Temperature, MA, Mms, va, vms,
E, B, v, V or others. Accepts any variable known by analysator/pytools.
E, B, v, V or others. Accepts any variable known by analysator.
Per-population variables are simply given as "proton/rho" etc
:kword operator: Operator to apply to variable: None, x, y, or z. Vector variables return either
the queried component, or otherwise the magnitude.
Expand Down
4 changes: 2 additions & 2 deletions pyPlots/plot_colormap3dslice.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import scipy
Expand Down Expand Up @@ -137,7 +137,7 @@ def plot_colormap3dslice(filename=None,
:kword nooverwrite: Set to only perform actions if the target output file does not yet exist

:kword var: variable to plot, e.g. rho, RhoBackstream, beta, Temperature, MA, Mms, va, vms,
E, B, v, V or others. Accepts any variable known by analysator/pytools.
E, B, v, V or others. Accepts any variable known by analysator.
Per-population variables are simply given as "proton/rho" etc
:kword operator: Operator to apply to variable: None, x, y, or z. Vector variables return either
the queried component, or otherwise the magnitude.
Expand Down
2 changes: 1 addition & 1 deletion pyPlots/plot_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import pytools as pt
import analysator as pt
import numpy as np
from rotation import rotateTensorToVector

Expand Down
2 changes: 1 addition & 1 deletion pyPlots/plot_isosurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt

Expand Down
4 changes: 2 additions & 2 deletions pyPlots/plot_threeslice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import scipy
Expand Down Expand Up @@ -158,7 +158,7 @@ def plot_threeslice(filename=None,
:kword step: output step index, used for constructing output (and possibly input) filename

:kword var: variable to plot, e.g. rho, RhoBackstream, beta, Temperature, MA, Mms, va, vms,
E, B, v, V or others. Accepts any variable known by analysator/pytools.
E, B, v, V or others. Accepts any variable known by analysator.
Per-population variables are simply given as "proton/rho" etc
:kword operator: Operator to apply to variable: None, x, y, or z. Vector variables return either
the queried component, or otherwise the magnitude.
Expand Down
2 changes: 1 addition & 1 deletion pyPlots/plot_vdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import scipy
Expand Down
2 changes: 1 addition & 1 deletion pyPlots/plot_vdf_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

import matplotlib
import pytools as pt
import analysator as pt
import numpy as np
import matplotlib.pyplot as plt
import scipy
Expand Down
2 changes: 1 addition & 1 deletion pyVlsv/vlsvfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.. code-block:: python

# Example:
import pytools as pt
import analysator as pt
pt.vlsvfile.
#press [tab] -> get the functions

Expand Down
2 changes: 1 addition & 1 deletion scripts/create_time_energy_spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pytools as pt
import analysator as pt
import numpy as np
import operator as oper

Expand Down
2 changes: 1 addition & 1 deletion scripts/estimate_AMR6D_FRODO.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pytools as pt
import analysator as pt
import sys, os, socket
import numpy as np
import math
Expand Down
2 changes: 1 addition & 1 deletion scripts/plot_jet_criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import pytools as pt
import analysator as pt
import sys, os, socket
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion scripts/plot_time_energy_spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pytools as pt
import analysator as pt
import numpy as np

# font size and linewidth
Expand Down
Loading