Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fixed some typos and syntax in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAyotte committed Jun 3, 2021
1 parent 0ef06e3 commit 39642c2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/sage/modular/quasimodform/quasimodform.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
.. NOTE:
Currently, all the methods are implemented only for the full modular groups. Congruence subgroups
of higher level are not yet supported
Only the space of quasimodular forms for the full modular group have been implemented.
AUTHORS:
Expand Down Expand Up @@ -84,7 +83,7 @@ def __init__(self, group=1, base_ring=QQ):
sage: QuasiModularFormsRing(2)
Traceback (most recent call last):
...
NotImplementedError: The space of quasimodular forms for higher levels are not yet implemented
NotImplementedError: space of quasimodular forms have only been implemented for the full modular group
sage: QuasiModularFormsRing(Integers(5))
Traceback (most recent call last):
...
Expand All @@ -94,12 +93,12 @@ def __init__(self, group=1, base_ring=QQ):
"""
if isinstance(group, (int, Integer)):
if group>1:
raise NotImplementedError("The space of quasimodular forms for higher levels are not yet implemented")
raise NotImplementedError("space of quasimodular forms have only been implemented for the full modular group")
group = Gamma0(1)
elif not is_CongruenceSubgroup(group):
raise ValueError("Group (=%s) should be a congruence subgroup" % group)
elif group is not Gamma0(1):
raise NotImplementedError("The space of quasimodular forms for higher levels are not yet implemented")
raise NotImplementedError("space of quasimodular forms have only been implemented for the full modular group")

self.__group = group
self.__base_ring = base_ring
Expand All @@ -121,7 +120,7 @@ def group(self):
sage: QuasiModularFormsRing(2)
Traceback (most recent call last):
...
NotImplementedError: The space of quasimodular forms for higher levels are not yet implemented
NotImplementedError: space of quasimodular forms have only been implemented for the full modular group
"""
return self.__group
Expand Down

0 comments on commit 39642c2

Please sign in to comment.