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

using readonly instead of user_editability; enabling injesting multip… #486

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sanbrock
Copy link
Collaborator

…le methods to the base classes and not only the normalization; Entry to inherit also from Task, so Workflow click drives there directly

…le methods to the base classes and not only the normalization; Entry to inherit also from Task, so Workflow click drives there directly
Copy link
Collaborator

@lukaspie lukaspie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should definitely also think how we can keep this clean and maintainable in the future. Maybe we can separate the actual schema creation a bit from the definition of new base section classes and normalization functions (i.e, move these to a new python file in the future)

@@ -105,8 +106,8 @@
"NXsample": [CompositeSystem],
"NXsample_component": [Component],
"NXidentifier": [EntityReference],
"NXentry": [ActivityStep],
"NXprocess": [ActivityStep],
"NXentry": [ActivityStep], # , Task],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment here if not used

)
# one could also copy local ids to identifier for search purposes
super(current_cls, self).normalize(archive, logger)


# def to_task_itself(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove if not needed

Comment on lines +145 to +150
if archive.results.eln.methods is None:
archive.results.eln.methods = []
if self.method:
archive.results.eln.methods.append(self.method)
else:
archive.results.eln.methods.append(self.m_def.name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually want to fill the results.eln.methods section? Is that needed in any way? If not, I suggest we remove it here.

@@ -105,8 +106,8 @@
"NXsample": [CompositeSystem],
"NXsample_component": [Component],
"NXidentifier": [EntityReference],
"NXentry": [ActivityStep],
"NXprocess": [ActivityStep],
"NXentry": [ActivityStep], # , Task],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should eventually becomes its own workflow (nested in the workflow of the whole nxs file) containing its own Tasks. But fine for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants