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

pvl header on cnet output incorrect #125

Closed
ladoramkershner opened this issue Jun 25, 2019 · 10 comments
Closed

pvl header on cnet output incorrect #125

ladoramkershner opened this issue Jun 25, 2019 · 10 comments

Comments

@ladoramkershner
Copy link
Contributor

Control networks output have defaults of None if values are not available. However, cpp has Null types for empty values and this causes issues if you attempt to merge control networks from isis and plio.

@jlaura
Copy link
Collaborator

jlaura commented Jun 25, 2019

Can you post in the fields where this is presenting?

@ladoramkershner
Copy link
Contributor Author

I apologize, could you clarify? The fields of the pvl label, or the portion of code I believe is responsible?

@jlaura
Copy link
Collaborator

jlaura commented Jun 25, 2019

Sorry yes. What does the current error look like? Which fields are being effected? The protobuf spec should be handling the type conversion (none->null), so knowing where this is occurring will help get a soln cooked.

@ladoramkershner
Copy link
Contributor Author

Attempting to run an isis cnetmerge on demo.net (plio generated) and hand_ground.net (isis generated):
cnetmerge inputtype=cnets base=demo.net cnet2=hand_ground.net onet=demo_wgrnd.net networkid='demo_wgrnd' log=demo_wgrnd.log description='demowithground'

and I receive the error:
USER ERROR Input [] does not target the same target as other Control Network(s).

looking at the labels of each of the cnets, demo.net has
Group = ControlNetworkInfo
NetworkId = None
TargetName = None
UserName = None
Created = "2019-06-25 19:13:25"
LastModified = "2019-06-25 19:13:25"
Description = None
NumberOfPoints = 263
NumberOfMeasures = 1359
Version = 2
End_Group

and hand_ground.net has
Group = ControlNetworkInfo
NetworkId = Null
TargetName = Null
UserName = Null
Created = 2019-06-24T12:12:40
LastModified = 2019-06-24T12:12:40
Description = Null
NumberOfPoints = 4
NumberOfMeasures = 30
Version = 5
End_Group

@ladoramkershner
Copy link
Contributor Author

Let me know if that is what you were looking for or if you would like more info!

@jlaura
Copy link
Collaborator

jlaura commented Jun 25, 2019

That is perfect! Shouldn't these both be target Mars? I thought ISIS didn't support an empty target to begin with? (so plio should error if no target). @jessemapel

@jessemapel
Copy link
Contributor

I'm not sure what ISIS does with no target. I'd have to go look at the ISIS control net versioner.

@ladoramkershner
Copy link
Contributor Author

They should, so that is another error. I am doing some hand stuff to get the cnets merged, but it should also be fixed. I will create a ticket

@jlaura
Copy link
Collaborator

jlaura commented Jun 26, 2019

Is this then a 'code working as expected' and we should make the change in AutoCNet (and improve the documentation/warning in here)?

@ladoramkershner
Copy link
Contributor Author

I believe so, I will make a separate ticket here to clean it up/summarize.

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

No branches or pull requests

3 participants