-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Journal.Date and JournalBasicFileInfo.FileName
- Loading branch information
Andreas Dieckmann
committed
Dec 16, 2017
1 parent
c53c2d6
commit 6850a20
Showing
4 changed files
with
155 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Workspace Version="1.3.1.1736" X="0" Y="0" zoom="1" ScaleFactor="1" Name="Journal.Date" Description="Computes the date of a given journal" ID="87ad3e95-f27d-4681-9952-02d475be154e" Category="Journalysis.Journal.Actions"> | ||
<NamespaceResolutionMap> | ||
<ClassMap partialName="File" resolvedName="DSCore.IO.File" assemblyName="DSCoreNodes.dll" /> | ||
<ClassMap partialName="System.IO.FileInfo" resolvedName="System.IO.FileInfo" assemblyName="" /> | ||
<ClassMap partialName="List.Empty" resolvedName="DSCore.List" assemblyName="DSCoreNodes.dll" /> | ||
</NamespaceResolutionMap> | ||
<Elements> | ||
<PythonNodeModels.PythonNode guid="c14ddd63-f9df-4826-9acc-09a519a00407" type="PythonNodeModels.PythonNode" nickname="Python Script" x="250" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" inputcount="1"> | ||
<PortInfo index="0" default="False" /> | ||
<Script>import clr | ||
|
||
def process_input(func, input): | ||
if isinstance(input, list): return [func(x) for x in input] | ||
else: return func(input) | ||
|
||
def journalDate(journal): | ||
if journal.__repr__() == 'Journal': return journal.GetDate() | ||
else: return None | ||
|
||
OUT = process_input(journalDate,IN[0])</Script> | ||
</PythonNodeModels.PythonNode> | ||
<Dynamo.Graph.Nodes.CustomNodes.Symbol guid="dcd621e3-fa95-4de0-a8f0-785ac7af9754" type="Dynamo.Graph.Nodes.CustomNodes.Symbol" nickname="Input" x="0" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false"> | ||
<Symbol value="journal" /> | ||
</Dynamo.Graph.Nodes.CustomNodes.Symbol> | ||
<Dynamo.Graph.Nodes.CustomNodes.Output guid="21feff7b-450d-483b-9bf9-530880e60c7d" type="Dynamo.Graph.Nodes.CustomNodes.Output" nickname="Output" x="449" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false"> | ||
<PortInfo index="0" default="False" /> | ||
<Symbol value="dateTime" /> | ||
</Dynamo.Graph.Nodes.CustomNodes.Output> | ||
</Elements> | ||
<Connectors> | ||
<Dynamo.Graph.Connectors.ConnectorModel start="c14ddd63-f9df-4826-9acc-09a519a00407" start_index="0" end="21feff7b-450d-483b-9bf9-530880e60c7d" end_index="0" portType="0" /> | ||
<Dynamo.Graph.Connectors.ConnectorModel start="dcd621e3-fa95-4de0-a8f0-785ac7af9754" start_index="0" end="c14ddd63-f9df-4826-9acc-09a519a00407" end_index="0" portType="0" /> | ||
</Connectors> | ||
<Notes /> | ||
<Annotations /> | ||
<Presets /> | ||
<Cameras> | ||
<Camera Name="Hintergrundvorschau" eyeX="-17" eyeY="24" eyeZ="50" lookX="12" lookY="-13" lookZ="-58" upX="0" upY="1" upZ="0" /> | ||
</Cameras> | ||
</Workspace> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Workspace Version="1.3.1.1736" X="0" Y="0" zoom="1" ScaleFactor="1" Name="JournalBasicFileInfo.FileName" Description="" ID="5f331f78-8449-4c4e-90cc-fe5cc0e72234" Category="Journalysis.JournalLine.BasicFileInfo.Query"> | ||
<NamespaceResolutionMap> | ||
<ClassMap partialName="File" resolvedName="DSCore.IO.File" assemblyName="DSCoreNodes.dll" /> | ||
<ClassMap partialName="System.IO.FileInfo" resolvedName="System.IO.FileInfo" assemblyName="" /> | ||
<ClassMap partialName="List.Empty" resolvedName="DSCore.List" assemblyName="DSCoreNodes.dll" /> | ||
</NamespaceResolutionMap> | ||
<Elements> | ||
<PythonNodeModels.PythonNode guid="6ae6bac3-d2d2-4229-abc6-7ed43e0b8038" type="PythonNodeModels.PythonNode" nickname="Python Script" x="250" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="true" inputcount="1"> | ||
<PortInfo index="0" default="False" /> | ||
<Script>import clr | ||
|
||
def process_input(func, input): | ||
if isinstance(input, list): return [func(x) for x in input] | ||
else: return func(input) | ||
|
||
def journalBFIFileName(jbfi): | ||
if jbfi.__repr__() == 'JournalBasicFileInfo': return jbfi.FileName | ||
else: return None | ||
|
||
OUT = process_input(journalBFIFileName,IN[0])</Script> | ||
</PythonNodeModels.PythonNode> | ||
<Dynamo.Graph.Nodes.CustomNodes.Symbol guid="25386197-eed6-4bce-b67c-a353ad53e111" type="Dynamo.Graph.Nodes.CustomNodes.Symbol" nickname="Input" x="0" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false"> | ||
<Symbol value="journalBasicFileInfo" /> | ||
</Dynamo.Graph.Nodes.CustomNodes.Symbol> | ||
<Dynamo.Graph.Nodes.CustomNodes.Output guid="79a2ac07-f5e7-461f-97bb-b36eabb7827e" type="Dynamo.Graph.Nodes.CustomNodes.Output" nickname="Output" x="449" y="0" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false"> | ||
<PortInfo index="0" default="False" /> | ||
<Symbol value="str" /> | ||
</Dynamo.Graph.Nodes.CustomNodes.Output> | ||
</Elements> | ||
<Connectors> | ||
<Dynamo.Graph.Connectors.ConnectorModel start="6ae6bac3-d2d2-4229-abc6-7ed43e0b8038" start_index="0" end="79a2ac07-f5e7-461f-97bb-b36eabb7827e" end_index="0" portType="0" /> | ||
<Dynamo.Graph.Connectors.ConnectorModel start="25386197-eed6-4bce-b67c-a353ad53e111" start_index="0" end="6ae6bac3-d2d2-4229-abc6-7ed43e0b8038" end_index="0" portType="0" /> | ||
</Connectors> | ||
<Notes /> | ||
<Annotations /> | ||
<Presets /> | ||
<Cameras> | ||
<Camera Name="Hintergrundvorschau" eyeX="-17" eyeY="24" eyeZ="50" lookX="12" lookY="-13" lookZ="-58" upX="0" upY="1" upZ="0" /> | ||
</Cameras> | ||
</Workspace> |
Oops, something went wrong.