Commit 903a87c6 authored by theos's avatar theos
Browse files

Corrected class names of field types.

parent cb38a0ca
......@@ -50,11 +50,15 @@ from nifty_paradict import space_paradict,\
point_space_paradict,\
nested_space_paradict
from field_types import Field_type,\
Field_array
from field_types import FieldType,\
FieldArray
from operators import *
from power import PowerSpace,\
RGPowerSpace,\
LMPowerSpace
## optional submodule `rg`
try:
from rg import rg_space,\
......
# -*- coding: utf-8 -*-
from field_array import Field_type,\
Field_array
\ No newline at end of file
from field_array import FieldType,\
FieldArray
\ No newline at end of file
......@@ -3,7 +3,7 @@
import numpy as np
class Field_type(object):
class FieldType(object):
def __init__(self, shape, dtype):
try:
new_shape = tuple([int(i) for i in shape])
......
# -*- coding: utf-8 -*-
from base_field_type import Field_type
from base_field_type import FieldType
class Field_array(Field_type):
class FieldArray(FieldType):
def dot_contraction(self, x, axes):
return x.sum(axis=axes)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment