Skip to content

Feature/300 replace cli by cs#305

Open
robdeltares wants to merge 48 commits intomasterfrom
feature/300-replace-cli-by-cs
Open

Feature/300 replace cli by cs#305
robdeltares wants to merge 48 commits intomasterfrom
feature/300-replace-cli-by-cs

Conversation

@robdeltares
Copy link
Contributor

No description provided.

Copy link
Collaborator

@epsig epsig left a comment

Choose a reason for hiding this comment

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

at lot of new code, interesting for the connection to Stability.

I also have some general remarks, see the issue.


for (size_t i = 0; i < xSample->Values.size(); i++)
/**
* \brief Sets a callback which calculates the beat in a certain direction
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* \brief Sets a callback which calculates the beat in a certain direction
* \brief Sets a callback which calculates the beta in a certain direction

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repaired

#include <format>

namespace Deltares::Models
namespace Deltares
Copy link
Collaborator

Choose a reason for hiding this comment

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

this looks like a merge error; the namespaces were on one line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repaired

@@ -0,0 +1,69 @@
// Copyright (C) Stichting Deltares. All rights reserved.
//
Copy link
Collaborator

Choose a reason for hiding this comment

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

I did not expect any new or changed code in the Deltares.Probabilistic.Net folder for this issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you point out which code you mean?

// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
//
using System;
Copy link
Collaborator

Choose a reason for hiding this comment

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

usused using (happens in more files)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed unused using

using Deltares.Probabilistic.Model;
using Deltares.Probabilistic.Utils;

namespace Deltares.Probabilistic.Logging
Copy link
Collaborator

Choose a reason for hiding this comment

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

namespace differs from folder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think Net or NetCS should not be part of the namespace, because in .Net you should not state that it is .net code. Also I think the project should be renamed to Net instead of NetCS when the C++/CLI code is not needed any more and removed


public double GetXFromP(double p)
{
double u = StandardNormal.GetUFromP(p);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is more than interface code ; should that not be part of the c-code ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, added it to c-code

* \brief Sets a callback which calculates the beat in a certain direction
* \param zBetaLambda Callback
*/
void ModelRunner::setDirectionModel(ZBetaLambda zBetaLambda) const
Copy link
Collaborator

Choose a reason for hiding this comment

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

zBetaLambda can be a const reference

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repaired

* \param sample Sample indicating the direction
* \return Beta
*/
double ModelRunner::getBeta(std::shared_ptr<Sample> sample)
Copy link
Collaborator

Choose a reason for hiding this comment

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

sample can be const reference
may be old code but it looks new here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repaired

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