Displaying 4 results from an estimated 4 matches for "not_real".
Did you mean:
na_real
2013 Mar 02
4
Bug#702046: xen-utils-4.0: PyGrub VM Boot fails after xen-utils 4.0.1-5.6 -> 4.0.1-5.7 Update
...9;> to parse /boot/grub/grub.cfg
WARNING:root:Unknown directive load_video
WARNING:root:Unknown directive terminal_output
WARNING:root:Unknown directive source
Traceback (most recent call last):
File "/usr/lib/xen-default/bin/pygrub", line 705, in <module>
output_directory, not_really)
NameError: name 'output_directory' is not defined
After replacing the new pygrub file with the one from the previous package everything works as expected.
I looked in the upstream source and this suggests that there should be a:
output_directory = "/var/run/xend/boot"...
2012 Aug 22
1
Reshaping dataframes
...pe package on two data frames I would get a data
frame like
trg_type child_type_1
1 Scientists NA
2 of used
Now to get rid of NA values I use the following function, which works for
data frames with only factor values:
substitute_na <- function(tok, na_factor_level = "NOT_REALIZED") {
for (i in 1:length(tok)) {levels(tok[,i]) <- c(levels(tok[,i]),
na_factor_level)}
tok[is.na(tok)] <- as.factor(na_factor_level)
return(tok)
}
Is there a better/faster way to do it? It would also be great to be able to
distinguish factor columns from numeric columns...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...ind us a kernel?
+ if not fs:
+ raise RuntimeError, "Unable to find partition containing kernel"
+
+ bootcfg["kernel"] = copy_from_image(fs, chosencfg["kernel"], "kernel",
+ output_directory, not_really)
+
if chosencfg["ramdisk"]:
- print " initrd: %s" % chosencfg["ramdisk"]
- print " args: %s" % chosencfg["args"]
- sys.exit(0)
+ try:
+ bootcfg["ramdisk"] = copy_from_image(fs...
2012 Oct 19
3
[PATCH] pygrub: Add option to list grub entries
...eractive] [-l|--list-entries] [-n|--not-really] [--output=] [--kernel=] [--ramdisk=] [--args=] [--entry=] [--output-directory=] [--output-format=sxp|simple|simple0] <image>" %(sys.argv[0],)
def copy_from_image(fs, file_to_read, file_type, output_directory,
not_really):
@@ -736,8 +746,8 @@ if __name__ == "__main__":
dataoff += len(data)
try:
- opts, args = getopt.gnu_getopt(sys.argv[1:], ''qinh::'',
- ["quiet", "interactive", "not-really", "...