Skip to content

Commit

Permalink
Merge pull request #170 from NeuralEnsemble/feat/link-to-index
Browse files Browse the repository at this point in the history
feat(schema): link to schema documentation index (cosmetic change)
  • Loading branch information
pgleeson authored May 19, 2023
2 parents 3167804 + fa36594 commit a8fc4ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neuroml/nml/generatedssupersuper.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ def info(self, show_contents=False, return_format="string"):
except AttributeError:
info_str = ""

info_str += "Please see the NeuroML standard schema documentation at https://docs.neuroml.org/Userdocs/NeuroMLv2.html for more information.\n\n"
info_str += "Valid members for {} are:\n".format(self.__class__.__name__)
class_name = self.__class__.__name__
info_str += f"NeuroMLv2 schema documentation: https://docs.neuroml.org/Userdocs/Schemas/Index.html?highlight={class_name[0].lower()}{class_name[1:]}#{class_name.lower()} for more information.\n\n"
info_str += "Valid members for {} are:\n".format(class_name)
all_members = self._get_members()
for member in all_members:
info_str += "* {} (class: {}, {})\n".format(
Expand Down

0 comments on commit a8fc4ae

Please sign in to comment.