17 using System.Runtime.CompilerServices;
18 using System.Collections.Generic;
27 public static partial class Messages
34 [MethodImpl(MethodImplOptions.AggressiveInlining)]
35 public static string AttributeNotImplemented(
string attribute, PyType pythonType)
37 return $
"{attribute} must be implemented. Please implement this missing method on {pythonType}";
46 public static string GetMarginCallOrdersMustReturnTuple =
"Must return a tuple, where the first item is a list and the second a boolean";
54 public static string PandasModuleNotImported =
"pandas module was not imported.";
56 [MethodImpl(MethodImplOptions.AggressiveInlining)]
57 public static string ConvertToDictionaryFailed(
string sourceType,
string targetType,
string reason)
59 return $
"ConvertToDictionary cannot be used to convert a {sourceType} into {targetType}. Reason: {reason}";
68 [MethodImpl(MethodImplOptions.AggressiveInlining)]
69 public static string DuplicateKey(
string duplicateKey,
string type)
71 return $
"More than one '{duplicateKey}' member was found in '{type}' class.";
74 [MethodImpl(MethodImplOptions.AggressiveInlining)]
75 public static string KeyNotFoundInSeries(
string key)
77 return $
"{key} key does not exist in series dictionary.";
86 public static string Start =
"start";
88 public static string Ended =
"ended";
90 [MethodImpl(MethodImplOptions.AggressiveInlining)]
91 public static string UnableToLocateAlgorithm(
string algorithmLocation)
93 return $
"Unable to find algorithm location path: {algorithmLocation}.";
96 [MethodImpl(MethodImplOptions.AggressiveInlining)]
97 public static string VirutalEnvironmentNotFound(
string virtualEnvPath)
99 return $
"Path {virtualEnvPath} to virtual environment does not exist.";
102 [MethodImpl(MethodImplOptions.AggressiveInlining)]
103 public static string FailedToFindSystemPackagesConfiguration(
string virtualEnvPath, FileInfo configFile)
105 return $
@"virtual env '{virtualEnvPath}'. Failed to find system packages configuration. ConfigFile.Exits: {
106 configFile.Exists}. Will default to true.";
109 [MethodImpl(MethodImplOptions.AggressiveInlining)]
110 public static string SystemPackagesConfigurationFound(
string virtualEnvPath,
bool includeSystemPackages)
112 return $
"virtual env '{virtualEnvPath}'. Will use system packages: {includeSystemPackages}";
115 [MethodImpl(MethodImplOptions.AggressiveInlining)]
116 public static string PythonPathNotFound(
string pythonPath)
118 return $
"Unable to find python path: {pythonPath}. Skipping.";
127 public static string ExpectedInterfaceTypeParameter =
"expected an interface type parameter.";
129 [MethodImpl(MethodImplOptions.AggressiveInlining)]
130 public static string InterfaceNotFullyImplemented(
string interfaceName,
string pythonTypeName, IEnumerable<string> missingMembers)
132 return $
@"{interfaceName} must be fully implemented. Please implement these missing methods on {
133 pythonTypeName}: {string.Join(",
", missingMembers)}";